From 8cd8d158867d415710c4a022f34371c032c6bb41 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 15 Jun 2020 13:41:41 -0700 Subject: [PATCH] Fixing sysui scrim not updating in landscape UI Bug: 156422012 Change-Id: I2e1e9149e8337dd663bf564bd1b7f661ec2864e9 --- .../android/quickstep/views/ShelfScrimView.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java index bec3050dad..19e278be3c 100644 --- a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java +++ b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java @@ -244,13 +244,17 @@ public class ShelfScrimView extends ScrimView @Override protected void updateSysUiColors() { - // Use a light system UI (dark icons) if all apps is behind at least half of the - // status bar. - boolean forceChange = mShelfTop <= mLauncher.getDeviceProfile().getInsets().top / 2f; - if (forceChange) { - mLauncher.getSystemUiController().updateUiState(UI_STATE_SCRIM_VIEW, !mIsScrimDark); + if (mDrawingFlatColor) { + super.updateSysUiColors(); } else { - mLauncher.getSystemUiController().updateUiState(UI_STATE_SCRIM_VIEW, 0); + // Use a light system UI (dark icons) if all apps is behind at least half of the + // status bar. + boolean forceChange = mShelfTop <= mLauncher.getDeviceProfile().getInsets().top / 2f; + if (forceChange) { + mLauncher.getSystemUiController().updateUiState(UI_STATE_SCRIM_VIEW, !mIsScrimDark); + } else { + mLauncher.getSystemUiController().updateUiState(UI_STATE_SCRIM_VIEW, 0); + } } }