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

Commit ba8347d9 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[Predictive Back] Support WidgetBottomSheet

Fix: 329713475
Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TEAMFOOD
Test: Manual - attach video to bug
Change-Id: Iaa33eb55f69b572a9fb2a4fb92b763b691039dd6
parent b5f0d063
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -296,7 +296,9 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
        float scaleProgress = mSlideInViewScale.value;
        SCALE_PROPERTY.set(this, scaleProgress);
        setClipChildren(!mIsBackProgressing);
        setClipToPadding(!mIsBackProgressing);
        mContent.setClipChildren(!mIsBackProgressing);
        mContent.setClipToPadding(!mIsBackProgressing);
        invalidate();
    }

+3 −0
Original line number Diff line number Diff line
@@ -118,6 +118,9 @@ public class WidgetsBottomSheet extends BaseWidgetSheet {
        mContent = findViewById(R.id.widgets_bottom_sheet);
        setContentBackgroundWithParent(
                getContext().getDrawable(R.drawable.bg_rounded_corner_bottom_sheet), mContent);
        View scrollView = findViewById(R.id.widgets_table_scroll_view);
        scrollView.setOutlineProvider(mViewOutlineProvider);
        scrollView.setClipToOutline(true);
    }

    @Override