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

Commit 73fe0b43 authored by Zak Cohen's avatar Zak Cohen Committed by Android (Google) Code Review
Browse files

Merge "WidgetPicker - Fix sliding scrim on add widget dialog." into main

parents 4897f7bc 10cf0869
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@
    <style name="AddItemActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
        <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
        <item name="android:windowTranslucentStatus">true</item>
        <!-- Add the dim background here, rather than in the activity layout as the window slides
             in from the bottom, and we don't want the scrim to slide. -->
        <item name="android:backgroundDimEnabled">true</item>
    </style>

    <style name="WidgetPickerActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
+3 −0
Original line number Diff line number Diff line
@@ -427,6 +427,9 @@
        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
        <item name="android:windowLightStatusBar">true</item>
        <item name="android:windowTranslucentStatus">true</item>
        <!-- Add the dim background here, rather than in the activity layout as the window slides
             in from the bottom, and we don't want the scrim to slide. -->
        <item name="android:backgroundDimEnabled">true</item>
    </style>

    <style name="ProxyActivityStarterTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
+4 −1
Original line number Diff line number Diff line
@@ -145,7 +145,10 @@ public class AddItemWidgetsBottomSheet extends AbstractSlideInView<AddItemActivi

    @Override
    protected int getScrimColor(Context context) {
        return context.getResources().getColor(R.color.widgets_picker_scrim);
        // Don't add a scrim when using the standalone picker activity. The background dimming is
        // handled by applying dimBackground in the activity theme, so the scrim doesn't slide in
        // with the window.
        return -1;
    }

    @SuppressLint("NewApi") // Already added API check.