Adjust WeatherDate view to be INVISIBLE instead of GONE
This keeps the position of smartspace the same on LS when it is visible. Bug: 277583395 Test: Manually check smartspace positioning Change-Id: I6dd451ed1518df270fa6f4115b51564b8bb503f2
This commit is contained in:
@@ -493,7 +493,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
|
||||
if (mDateWeatherView != null) {
|
||||
mUiExecutor.execute(() -> {
|
||||
mDateWeatherView.setVisibility(
|
||||
clockHasCustomWeatherDataDisplay() ? View.GONE : View.VISIBLE);
|
||||
clockHasCustomWeatherDataDisplay() ? View.INVISIBLE : View.VISIBLE);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user