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

Commit 0a404e1a authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Update clock format when locale list changes" into pi-dev

am: 74f5aa02

Change-Id: I383d98760fd82c2119e733073f48a81366b5a741
parents a103bc51 74f5aa02
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -82,14 +82,14 @@ public class KeyguardStatusView extends GridLayout implements

        @Override
        public void onTimeChanged() {
            refresh();
            refreshTime();
        }

        @Override
        public void onKeyguardVisibilityChanged(boolean showing) {
            if (showing) {
                if (DEBUG) Slog.v(TAG, "refresh statusview showing:" + showing);
                refresh();
                refreshTime();
                updateOwnerInfo();
                updateLogoutView();
            }
@@ -107,7 +107,7 @@ public class KeyguardStatusView extends GridLayout implements

        @Override
        public void onUserSwitchComplete(int userId) {
            refresh();
            refreshFormat();
            updateOwnerInfo();
            updateLogoutView();
        }
@@ -184,7 +184,7 @@ public class KeyguardStatusView extends GridLayout implements

        boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive();
        setEnableMarquee(shouldMarquee);
        refresh();
        refreshFormat();
        updateOwnerInfo();
        updateLogoutView();
        updateDark();
@@ -289,9 +289,10 @@ public class KeyguardStatusView extends GridLayout implements
        mClockView.refresh();
    }

    private void refresh() {
    private void refreshFormat() {
        Patterns.update(mContext);
        refreshTime();
        mClockView.setFormat12Hour(Patterns.clockView12);
        mClockView.setFormat24Hour(Patterns.clockView24);
    }

    public int getLogoutButtonHeight() {
@@ -337,6 +338,11 @@ public class KeyguardStatusView extends GridLayout implements
        Dependency.get(ConfigurationController.class).removeCallback(this);
    }

    @Override
    public void onLocaleListChanged() {
        refreshFormat();
    }

    @Override
    public boolean hasOverlappingRendering() {
        return false;