commit | 76b2dad6207c48f7d2d811fa8c73f965033ba015 | [log] [tgz] |
---|---|---|
author | Helen Cheuk <helencheuk@google.com> | Fri Aug 16 10:51:56 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Aug 16 10:51:56 2024 +0000 |
tree | 5d4f6c1f3f2004be12ba52b8d42aa1bbeb8fd9f3 | |
parent | a21058eb881f638779e89bc900229dc428fe1ded [diff] | |
parent | 80896721ae9524a7bb6dc7238ff0991745fe2a1f [diff] |
Merge "Fix stuck focus outline after returning to home" into main
diff --git a/src/com/android/launcher3/keyboard/ItemFocusIndicatorHelper.java b/src/com/android/launcher3/keyboard/ItemFocusIndicatorHelper.java index 480e8f3..ec0efe0 100644 --- a/src/com/android/launcher3/keyboard/ItemFocusIndicatorHelper.java +++ b/src/com/android/launcher3/keyboard/ItemFocusIndicatorHelper.java
@@ -199,6 +199,10 @@ } protected void changeFocus(T item, boolean hasFocus) { + if (mLastFocusedItem != item && !hasFocus) { + return; + } + if (hasFocus) { endCurrentAnimation();