mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Fix icon flash on app launch
Flag: com.android.launcher3.enable_additional_home_animations Fixes: 343051344 Test: temp logs, launched apps from home, quickly swiped home while quick switching (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9fb1f8043573d5bc3376f0786354fc8f7a9cf2cd) Merged-In: I91071d53f753eb7bc99305c46241de203bcfdc98 Change-Id: I91071d53f753eb7bc99305c46241de203bcfdc98
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
40c4382060
commit
cb2a1474a7
@@ -16,6 +16,7 @@
|
||||
package com.android.launcher3.views;
|
||||
|
||||
import static com.android.app.animation.Interpolators.LINEAR;
|
||||
import static com.android.launcher3.Flags.enableAdditionalHomeAnimations;
|
||||
import static com.android.launcher3.Utilities.boundToRange;
|
||||
import static com.android.launcher3.Utilities.mapToRange;
|
||||
import static com.android.launcher3.anim.AnimatorListeners.forEndCallback;
|
||||
@@ -97,6 +98,9 @@ public class ClipIconView extends View implements ClipPathView {
|
||||
* within the clip bounds of this view.
|
||||
*/
|
||||
public void setTaskViewArtist(TaskViewArtist taskViewArtist) {
|
||||
if (!enableAdditionalHomeAnimations()) {
|
||||
return;
|
||||
}
|
||||
mTaskViewArtist = taskViewArtist;
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user