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

Commit f45e0243 authored by shawnlin's avatar shawnlin
Browse files

Rename the api from refresh() to refreshTime() to make it more clear

Test: make api-stubs-docs-update-current-api, make
Bug: 140102239
Change-Id: Ieb7403748b8b8a7f7c967b7228733a19caf4a306
parent a1305759
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58641,7 +58641,7 @@ package android.widget {
    method @android.view.ViewDebug.ExportedProperty public CharSequence getFormat24Hour();
    method public String getTimeZone();
    method public boolean is24HourModeEnabled();
    method public void refresh();
    method public void refreshTime();
    method public void setFormat12Hour(CharSequence);
    method public void setFormat24Hour(CharSequence);
    method public void setTimeZone(String);
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ public class TextClock extends TextView {
    /**
     * Update the displayed time if necessary and invalidate the view.
     */
    public void refresh() {
    public void refreshTime() {
        onTimeChanged();
        invalidate();
    }
+2 −2
Original line number Diff line number Diff line
@@ -387,8 +387,8 @@ public class KeyguardClockSwitch extends RelativeLayout {
     * Refresh the time of the clock, due to either time tick broadcast or doze time tick alarm.
     */
    public void refresh() {
        mClockView.refresh();
        mClockViewBold.refresh();
        mClockView.refreshTime();
        mClockViewBold.refreshTime();
        if (mClockPlugin != null) {
            mClockPlugin.onTimeTick();
        }
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ public class AnalogClockController implements ClockPlugin {
    public void onTimeTick() {
        mAnalogClock.onTimeChanged();
        mBigClockView.onTimeChanged();
        mLockClock.refresh();
        mLockClock.refreshTime();
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public class BubbleClockController implements ClockPlugin {
    public void onTimeTick() {
        mAnalogClock.onTimeChanged();
        mView.onTimeChanged();
        mLockClock.refresh();
        mLockClock.refreshTime();
    }

    @Override