Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 661e5583 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removing unnecessary layout pass happening due when chaning...

Merge "Removing unnecessary layout pass happening due when chaning gradientView visibility" into ub-launcher3-master
parents 830578ff d66e3b6a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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
+1 −2
Original line number Diff line number Diff line
@@ -275,8 +275,7 @@ public class AllAppsTransitionController implements TouchController, SwipeDetect
    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);
    }
+0 −1
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ public class WidgetsBottomSheet extends AbstractFloatingView implements Insettab
        onWidgetsBound();

        mLauncher.getDragLayer().addView(mGradientBackground);
        mGradientBackground.setVisibility(VISIBLE);
        mLauncher.getDragLayer().addView(this);
        measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
        setTranslationY(mTranslationYClosed);