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

Commit 5bf5b002 authored by Daniel Sandler's avatar Daniel Sandler Committed by Automerger Merge Worker
Browse files

Merge changes from topic "egg12" into sc-dev am: 51204c44

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241669

Change-Id: Idde895cf4e727b14c91d00635812d6d417d2b6f1
parents c38d7441 51204c44
Loading
Loading
Loading
Loading
+17 −3
Original line number Diff line number Diff line
@@ -740,8 +740,22 @@ public class AnalogClock extends View {
        }
    }

    private void onTimeChanged() {
        Instant now = mClock.instant();
    /**
     * Return the current Instant to be used for drawing the clockface. Protected to allow
     * subclasses to override this to show a different time from the system clock.
     *
     * @return the Instant to be shown on the clockface
     * @hide
     */
    protected Instant now() {
        return mClock.instant();
    }

    /**
     * @hide
     */
    protected void onTimeChanged() {
        Instant now = now();
        onTimeChanged(now.atZone(mClock.getZone()).toLocalTime(), now.toEpochMilli());
    }

@@ -789,7 +803,7 @@ public class AnalogClock extends View {
                return;
            }

            Instant now = mClock.instant();
            Instant now = now();
            ZonedDateTime zonedDateTime = now.atZone(mClock.getZone());
            LocalTime localTime = zonedDateTime.toLocalTime();

+229 −247

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -5902,8 +5902,8 @@
                android:process=":ui">
        </activity>
        <activity android:name="com.android.internal.app.PlatLogoActivity"
                android:theme="@style/Theme.DeviceDefault.DayNight"
                android:configChanges="orientation|keyboardHidden"
                android:theme="@style/Theme.DeviceDefault.Wallpaper.NoTitleBar"
                android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
                android:icon="@drawable/platlogo"
                android:process=":ui">
        </activity>
−10.3 KiB
Loading image diff...
−2.14 KiB
Loading image diff...
Loading