diff options
-rw-r--r-- | src/com/android/launcher3/Hotseat.java | 5 | ||||
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsTransitionController.java | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index b2f24bec5..b75d2c0da 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -220,11 +220,10 @@ public class Hotseat extends FrameLayout } public void setBackgroundTransparent(boolean enable) { - // This causes re-layout. Should replace the logic with simply setting the background alpha if (enable) { - setBackground(null); + mBackground.setAlpha(0); } else { - setBackground(mBackground); + mBackground.setAlpha(255); } } diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index 3ae8cd8fa..87236aa91 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java @@ -444,5 +444,6 @@ public class AllAppsTransitionController implements TouchController, VerticalPul if (!mLauncher.isAllAppsVisible()) { setProgress(mShiftRange); } + mHotseat.removeOnLayoutChangeListener(this); } } |