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

Commit 9cddb917 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Start blibking thread with post instead of postDelayed

Bug: 7275365

When pressing the stop button on the timer of stopwatch, start the blinking of the
time without a delay.

Change-Id: I2cbd6ebd65fc9dd6699fbc53c867627ca95dab01
parent 2c1f711b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -53,9 +53,9 @@ public class CountingTimerView extends View {
    private final Paint mPaintMed = new Paint();
    private final Paint mPaintLabel = new Paint();
    private final float mBigFontSize, mSmallFontSize;
    private SignedTime mBigHours, mBigMinutes;
    private UnsignedTime mBigThinSeconds;
    private Hundredths mMedHundredths;
    private final SignedTime mBigHours, mBigMinutes;
    private final UnsignedTime mBigThinSeconds;
    private final Hundredths mMedHundredths;
    private float mTextHeight = 0;
    private float mTotalTextWidth;
    private static final String HUNDREDTH_SEPERATOR = ".";
@@ -87,7 +87,7 @@ public class CountingTimerView extends View {
        protected Paint mPaint;
        protected float mEm;
        protected float mWidth = 0;
        private String mWidest;
        private final String mWidest;
        protected String mLabel;
        private float mLabelWidth = 0;

@@ -430,7 +430,7 @@ public class CountingTimerView extends View {
    public void blinkTimeStr(boolean blink) {
        if (blink) {
            removeCallbacks(mBlinkThread);
            postDelayed(mBlinkThread, 1000);
            post(mBlinkThread);
        } else {
            removeCallbacks(mBlinkThread);
            showTime(true);