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

Commit 20b52faf authored by Ivan Chiang's avatar Ivan Chiang
Browse files

[PM] Support material AlertDialog (9/N)

- Update the style and color of the progressbar
- Update the dim value

Flag: android.content.pm.use_pia_v2
Test: manual
Bug: 274120822
Change-Id: I09cf6381b6fbcd9c88981a82ae41a25bf3513b29
parent 16842cac
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -31,11 +31,10 @@
        <com.google.android.material.progressindicator.LinearProgressIndicator
            android:id="@+id/progress_bar"
            android:indeterminate="true"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:layout_marginTop="@dimen/dialog_inter_element_margin"
            android:paddingVertical="4dp"
            android:visibility="gone" />
            android:visibility="gone"
            style="@style/PackageInstaller.ProgressBarStyle.Linear"/>

        <TextView
            style="?attr/textAppearanceInstallerCustomMessage"
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@
    <dimen name="button_min_height">40dp</dimen>
    <dimen name="dialog_inter_element_vertical_margin">12dp</dimen>
    <dimen name="alert_dialog_radius">28dp</dimen>
    <dimen name="alert_dialog_dim_amount">0.68</dimen>
    <dimen name="alert_dialog_dim_amount">0.6</dimen>
    <!-- 24dp + 364dp + 24dp for the portrait mode -->
    <dimen name="alert_dialog_min_width_minor">412dp</dimen>
    <!-- Override the values for the buttonbar paddings in M3 MaterialAlertDialog -->
+8 −0
Original line number Diff line number Diff line
@@ -168,4 +168,12 @@
    <style name="ShapeAppearance">
        <item name="cornerSize">@dimen/alert_dialog_radius</item>
    </style>

    <style name="PackageInstaller.ProgressBarStyle.Linear" parent="Widget.Material3.LinearProgressIndicator">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="indicatorColor">@color/primaryColor</item>
        <item name="trackColor">@color/outlineVariantColor</item>
        <item name="trackCornerRadius">50%</item>
    </style>
</resources>