Loading packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +3 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,9 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mClockViewController.refreshTime(); mLargeClockViewController.refreshTime(); } if (mSmartspaceController != null) { mSmartspaceController.requestSmartspaceUpdate(); } mView.refresh(); } Loading packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/LockscreenSmartspaceController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,10 @@ class LockscreenSmartspaceController @Inject constructor( return view } fun requestSmartspaceUpdate() { session?.requestSmartspaceUpdate() } private fun buildView(parent: ViewGroup) { if (plugin == null) { return Loading packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,13 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { verify(mView).removeView(mFakeSmartspaceView); } @Test public void testRefresh() { mController.refresh(); verify(mSmartspaceController).requestSmartspaceUpdate(); } private void verifyAttachment(VerificationMode times) { verify(mClockManager, times).addOnClockChangedListener( any(ClockManager.ClockChangedListener.class)); Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +3 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,9 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mClockViewController.refreshTime(); mLargeClockViewController.refreshTime(); } if (mSmartspaceController != null) { mSmartspaceController.requestSmartspaceUpdate(); } mView.refresh(); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/LockscreenSmartspaceController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,10 @@ class LockscreenSmartspaceController @Inject constructor( return view } fun requestSmartspaceUpdate() { session?.requestSmartspaceUpdate() } private fun buildView(parent: ViewGroup) { if (plugin == null) { return Loading
packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,13 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { verify(mView).removeView(mFakeSmartspaceView); } @Test public void testRefresh() { mController.refresh(); verify(mSmartspaceController).requestSmartspaceUpdate(); } private void verifyAttachment(VerificationMode times) { verify(mClockManager, times).addOnClockChangedListener( any(ClockManager.ClockChangedListener.class)); Loading