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:
Chandru
2022-07-14 14:25:13 +00:00
parent 3927e44f00
commit 8de289ada1
3 changed files with 1 additions and 12 deletions

View File

@@ -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);

View File

@@ -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
*/

View File

@@ -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