mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Prevent all apps transition NPE
b/29643291 b/29642263 > Also do not change status bar when landscape mode Change-Id: I1e44af8e031856a50a7413ad297c437245e8b2aa
This commit is contained in:
@@ -239,7 +239,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||
if (!mLauncher.isAllAppsVisible()) {
|
||||
mLauncher.tryAndUpdatePredictedApps();
|
||||
|
||||
mHotseatBackgroundAlpha = mHotseat.getBackground().getAlpha() / 255f;
|
||||
mHotseatBackgroundAlpha = mHotseat.getBackgroundDrawableAlpha() / 255f;
|
||||
mHotseat.setBackgroundTransparent(true /* transparent */);
|
||||
mAppsView.setVisibility(View.VISIBLE);
|
||||
mAppsView.getContentView().setVisibility(View.VISIBLE);
|
||||
@@ -270,6 +270,10 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||
|
||||
private void updateLightStatusBar(float progress) {
|
||||
boolean enable = (progress < mStatusBarHeight / 2);
|
||||
// Do not modify status bar on landscape as all apps is not full bleed.
|
||||
if (mLauncher.getDeviceProfile().isVerticalBarLayout()) {
|
||||
return;
|
||||
}
|
||||
// Already set correctly
|
||||
if (mLightStatusBar == enable) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user