diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index 25d17928351a7..a42a9b79e596f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -493,7 +493,7 @@ public class KeyguardClockSwitchController extends ViewController { mDateWeatherView.setVisibility( - clockHasCustomWeatherDataDisplay() ? View.GONE : View.VISIBLE); + clockHasCustomWeatherDataDisplay() ? View.INVISIBLE : View.VISIBLE); }); } } diff --git a/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java b/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java index b9f8dd9452937..fc906dedfa1db 100644 --- a/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java +++ b/packages/SystemUI/tests/src/com/android/keyguard/KeyguardClockSwitchControllerTest.java @@ -391,7 +391,7 @@ public class KeyguardClockSwitchControllerTest extends SysuiTestCase { listenerArgumentCaptor.getValue().onCurrentClockChanged(); mExecutor.runAllReady(); - assertEquals(View.GONE, mFakeDateView.getVisibility()); + assertEquals(View.INVISIBLE, mFakeDateView.getVisibility()); } @Test