diff options
author | 2017-01-03 16:45:42 -0800 | |
---|---|---|
committer | 2017-01-03 16:45:42 -0800 | |
commit | e40fb27f32bc3717c006267f48231c4e62d7bb07 (patch) | |
tree | b3d0d633ffa920c0670d37f9fc68adfcc21b8e6b | |
parent | 8644daa39f20559080e927fe8092318179d42e91 (diff) |
Fix custom pointer icon caching in ViewRootImpl
Currently if the pointer leaves a window which has
a custom pointer icon, the pointer icon is not updated
upon re-entry.
Bug: 33824962
Test: manual
Change-Id: I3e40413117b8aa2a1bde47394ef9318a03a7e135
-rw-r--r-- | core/java/android/view/ViewRootImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 4f2020311ff4..dc691debc2ef 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -4552,8 +4552,8 @@ public final class ViewRootImpl implements ViewParent, if (mPointerIconType != pointerType) { mPointerIconType = pointerType; + mCustomPointerIcon = null; if (mPointerIconType != PointerIcon.TYPE_CUSTOM) { - mCustomPointerIcon = null; InputManager.getInstance().setPointerIconType(pointerType); return true; } |