Add log for refresh time for customized clocks

Test: manual and see log printed in bugreport
Bug: 290746208
Change-Id: Idd7c38cfd5517b99ca6b7c37aece72ba9bf7a980
This commit is contained in:
Sherry Zhou
2023-07-25 20:56:00 +00:00
parent 1ce6427ad5
commit fdd9b7a6b4
2 changed files with 2 additions and 0 deletions

View File

@@ -421,6 +421,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
* Refresh clock. Called in response to TIME_TICK broadcasts.
*/
void refresh() {
mLogBuffer.log(TAG, LogLevel.INFO, "refresh");
if (mSmartspaceController != null) {
mSmartspaceController.requestSmartspaceUpdate();
}

View File

@@ -308,6 +308,7 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
private KeyguardUpdateMonitorCallback mInfoCallback = new KeyguardUpdateMonitorCallback() {
@Override
public void onTimeChanged() {
Slog.v(TAG, "onTimeChanged");
refreshTime();
}