Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3bc2d73 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8529137 from 228f818f to tm-qpr1-release

Change-Id: I10c3eac5def167e555fa05575692fb84ca282aaf
parents c43131a8 228f818f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -422,6 +422,18 @@ public class ClockDrawableWrapper extends AdaptiveIconDrawable implements Bitmap
            reschedule();
        }

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