summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-07-13 15:34:07 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-07-13 23:46:22 +0000
commit708dbe80902b963388c412f670c56ae00953273a (patch)
tree56d6f80e05037cb552b52a1f3b8bc2afa9029a2a /libs/androidfw/ObbFile.cpp
parent59aad3bc8fce432aa6be0290aedd9339efa40860 (diff)
View: Remove tooltip callbacks when detached from window
When a View has tooltip text set, every hover event will fire a callback to hide the tooltip after a 15 second timeout. Since the callback holds a reference to the View, it will leak the View for that duration after the Activity is finished or the View is removed. Prevent this temporary leak by removing the tooltip callbacks immediately when the View is detatched from the window. Bug: 281473769 Test: manual, heap dump using Android Studio Change-Id: I9044759be0feaf094aa4c140565dfa015b944bd8 Merged-In: I9044759be0feaf094aa4c140565dfa015b944bd8
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions