commit | d66e3b6a6510000d3d48f65e82b5b83d30ecb639 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon Oct 02 15:26:42 2017 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon Oct 02 15:27:21 2017 -0700 |
tree | 1bfc35aabf288876c9cb8f131802552e249c0a64 | |
parent | 326403e958344751539cefec62ecbc6d28abd2ce [diff] |
Removing unnecessary layout pass happening due when chaning gradientView visibility Change-Id: I0d8f0c2c995885143156a27536b0a2185d5eb0b8
diff --git a/res/layout/gradient_bg.xml b/res/layout/gradient_bg.xml index db448d7..6c6626c 100644 --- a/res/layout/gradient_bg.xml +++ b/res/layout/gradient_bg.xml
@@ -20,5 +20,4 @@ android:id="@+id/gradient_bg" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone" launcher:layout_ignoreInsets="true" /> \ No newline at end of file
diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index 3364c61..8777901 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java
@@ -301,8 +301,7 @@ private void updateAllAppsBg(float progress) { // gradient if (mGradientView == null) { - mGradientView = (GradientView) mLauncher.findViewById(R.id.gradient_bg); - mGradientView.setVisibility(View.VISIBLE); + mGradientView = mLauncher.findViewById(R.id.gradient_bg); } mGradientView.setProgress(progress); }
diff --git a/src/com/android/launcher3/widget/WidgetsBottomSheet.java b/src/com/android/launcher3/widget/WidgetsBottomSheet.java index 01101ac..aa0fb7b 100644 --- a/src/com/android/launcher3/widget/WidgetsBottomSheet.java +++ b/src/com/android/launcher3/widget/WidgetsBottomSheet.java
@@ -108,7 +108,6 @@ onWidgetsBound(); mLauncher.getDragLayer().addView(mGradientBackground); - mGradientBackground.setVisibility(VISIBLE); mLauncher.getDragLayer().addView(this); measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); setTranslationY(mTranslationYClosed);