diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-09 14:40:12 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-09 14:40:12 +0000 |
commit | 2a167e05bb6553ea3867be9e457b57db3fe5ee3e (patch) | |
tree | f10e837e6886fcd6402c082c296bf68a30cfec27 | |
parent | 97b0374d11df88491f53e6d3830da1ff0282e25e (diff) | |
parent | e628400809189123f508d134c763947b169a8593 (diff) | |
download | systemui-android13-frc-documentsui-release.tar.gz |
Snap for 8702298 from e628400809189123f508d134c763947b169a8593 to tm-frc-documentsui-releaset_frc_doc_330543000t_frc_doc_330443060t_frc_doc_330443000android13-frc-documentsui-release
Change-Id: I3f9ac6a15bb19fed4805c6f5ff2f344a8b1110a3
-rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java b/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java index 176846f..d624805 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java +++ b/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java @@ -389,6 +389,10 @@ public class ClockDrawableWrapper extends AdaptiveIconDrawable implements Bitmap mFullDrawable = (AdaptiveIconDrawable) mAnimInfo.baseDrawableState.newDrawable(); mFG = (LayerDrawable) mFullDrawable.getForeground(); + + // Time needs to be applied here since drawInternal is NOT guaranteed to be called + // before this foreground drawable is shown on the screen. + mAnimInfo.applyTime(mTime, mFG); mCanvasScale = 1 - 2 * mBoundsOffset; } @@ -422,18 +426,6 @@ public class ClockDrawableWrapper extends AdaptiveIconDrawable implements Bitmap } @Override - public boolean setState(int[] stateSet) { - // If the user has just pressed the clock icon, and the clock app is launching, - // we don't want to change the time shown. Doing so can result in jank. - for (int state: stateSet) { - if (state == android.R.attr.state_pressed) { - return false; - } - } - return super.setState(stateSet); - } - - @Override public boolean isThemed() { return mBgPaint.getColorFilter() != null; } |