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

Commit 8de289ad authored by Chandru's avatar Chandru
Browse files

Remove onClockVisibilityChanged callback from KUMCallback

This callback is never invoked except once while the callback is
being registered.

Bug: 238187419
Test: atest KeyguardUpdateMonitorTest passes
Test: atest KeyguardViewMediatorTest passes
Change-Id: Ib349ea061728860cc43782db21df03d8e698e363
parent 3927e44f
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -3347,7 +3347,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
        callback.onTimeChanged();
        callback.onTimeChanged();
        callback.onPhoneStateChanged(mPhoneState);
        callback.onPhoneStateChanged(mPhoneState);
        callback.onRefreshCarrierInfo();
        callback.onRefreshCarrierInfo();
        callback.onClockVisibilityChanged();
        callback.onKeyguardVisibilityChangedRaw(mKeyguardIsVisible);
        callback.onKeyguardVisibilityChangedRaw(mKeyguardIsVisible);
        callback.onTelephonyCapable(mTelephonyCapable);
        callback.onTelephonyCapable(mTelephonyCapable);


+0 −6
Original line number Original line Diff line number Diff line
@@ -110,12 +110,6 @@ public class KeyguardUpdateMonitorCallback {
     */
     */
    public void onKeyguardDismissAnimationFinished() { }
    public void onKeyguardDismissAnimationFinished() { }


    /**
     * Called when visibility of lockscreen clock changes, such as when
     * obscured by a widget.
     */
    public void onClockVisibilityChanged() { }

    /**
    /**
     * Called when the device becomes provisioned
     * Called when the device becomes provisioned
     */
     */
+1 −5
Original line number Original line Diff line number Diff line
@@ -555,11 +555,6 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
            }
            }
        }
        }


        @Override
        public void onClockVisibilityChanged() {
            adjustStatusBarLocked();
        }

        @Override
        @Override
        public void onDeviceProvisioned() {
        public void onDeviceProvisioned() {
            sendUserPresentBroadcast();
            sendUserPresentBroadcast();
@@ -1193,6 +1188,7 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
            mSystemReady = true;
            mSystemReady = true;
            doKeyguardLocked(null);
            doKeyguardLocked(null);
            mUpdateMonitor.registerCallback(mUpdateCallback);
            mUpdateMonitor.registerCallback(mUpdateCallback);
            adjustStatusBarLocked();
            mDreamOverlayStateController.addCallback(mDreamOverlayStateCallback);
            mDreamOverlayStateController.addCallback(mDreamOverlayStateCallback);
        }
        }
        // Most services aren't available until the system reaches the ready state, so we
        // Most services aren't available until the system reaches the ready state, so we