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
This commit is contained in:
Vladislav Kaznacheev
2017-01-03 16:45:42 -08:00
parent 8644daa39f
commit e40fb27f32

View File

@@ -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;
}