Merge "View: Remove tooltip callbacks when detached from window" into main am: 3a19a6132e am: e928921602 am: d1584a0574

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2653806

Change-Id: I084f3f649d0fe57704a15ea7f9f458c47b3c7f2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Prabir Pradhan
2023-07-17 18:45:43 +00:00
committed by Automerger Merge Worker

View File

@@ -21825,6 +21825,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
mCurrentAnimation = null;
if ((mViewFlags & TOOLTIP) == TOOLTIP) {
removeCallbacks(mTooltipInfo.mShowTooltipRunnable);
removeCallbacks(mTooltipInfo.mHideTooltipRunnable);
hideTooltip();
}