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
This commit is contained in:
@@ -3347,7 +3347,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
||||
callback.onTimeChanged();
|
||||
callback.onPhoneStateChanged(mPhoneState);
|
||||
callback.onRefreshCarrierInfo();
|
||||
callback.onClockVisibilityChanged();
|
||||
callback.onKeyguardVisibilityChangedRaw(mKeyguardIsVisible);
|
||||
callback.onTelephonyCapable(mTelephonyCapable);
|
||||
|
||||
|
||||
@@ -110,12 +110,6 @@ public class KeyguardUpdateMonitorCallback {
|
||||
*/
|
||||
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
|
||||
*/
|
||||
|
||||
@@ -555,11 +555,6 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClockVisibilityChanged() {
|
||||
adjustStatusBarLocked();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDeviceProvisioned() {
|
||||
sendUserPresentBroadcast();
|
||||
@@ -1193,6 +1188,7 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
||||
mSystemReady = true;
|
||||
doKeyguardLocked(null);
|
||||
mUpdateMonitor.registerCallback(mUpdateCallback);
|
||||
adjustStatusBarLocked();
|
||||
mDreamOverlayStateController.addCallback(mDreamOverlayStateCallback);
|
||||
}
|
||||
// Most services aren't available until the system reaches the ready state, so we
|
||||
|
||||
Reference in New Issue
Block a user