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

Commit b87abd1b authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Refresh should always update the field" into qt-dev

am: ae61369c

Change-Id: I36e5d74f3e1d8a17de69a03b05086c101909477d
parents 438e12cd ae61369c
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -175,6 +175,9 @@ public class TextClock extends TextView {
            if (mTimeZone == null && Intent.ACTION_TIMEZONE_CHANGED.equals(intent.getAction())) {
            if (mTimeZone == null && Intent.ACTION_TIMEZONE_CHANGED.equals(intent.getAction())) {
                final String timeZone = intent.getStringExtra("time-zone");
                final String timeZone = intent.getStringExtra("time-zone");
                createTime(timeZone);
                createTime(timeZone);
            } else if (!mShouldRunTicker && (Intent.ACTION_TIME_TICK.equals(intent.getAction())
                    || Intent.ACTION_TIME_CHANGED.equals(intent.getAction()))) {
                return;
            }
            }
            onTimeChanged();
            onTimeChanged();
        }
        }
@@ -642,13 +645,10 @@ public class TextClock extends TextView {
     */
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage
    private void onTimeChanged() {
    private void onTimeChanged() {
        // mShouldRunTicker always equals the last value passed into onVisibilityAggregated
        if (mShouldRunTicker) {
        mTime.setTimeInMillis(System.currentTimeMillis());
        mTime.setTimeInMillis(System.currentTimeMillis());
        setText(DateFormat.format(mFormat, mTime));
        setText(DateFormat.format(mFormat, mTime));
        setContentDescription(DateFormat.format(mDescFormat, mTime));
        setContentDescription(DateFormat.format(mDescFormat, mTime));
    }
    }
    }


    /** @hide */
    /** @hide */
    @Override
    @Override