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

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

Merge changes from topic "free_up_space_card_preference" into sc-dev

* changes:
  Tweak UI of CardPreference and ContextualCard
  'Free up space' uses CardPreference
parents d769667e bdb70b10
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
@@ -1117,22 +1117,6 @@
            column="5"/>
    </issue>

    <issue
        id="HardCodedColor"
        severity="Error"
        message="Avoid using hardcoded color"
        category="Correctness"
        priority="4"
        summary="Using hardcoded color"
        explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
        errorLine1="    &lt;color name=&quot;contextual_card_stroke_color&quot;>#1f000000&lt;/color>"
        errorLine2="    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="res/values/colors.xml"
            line="106"
            column="5"/>
    </issue>

    <issue
        id="HardCodedColor"
        severity="Error"
@@ -4285,22 +4269,6 @@
            column="44"/>
    </issue>

    <issue
        id="HardCodedColor"
        severity="Error"
        message="Avoid using hardcoded color"
        category="Correctness"
        priority="4"
        summary="Using hardcoded color"
        explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
        errorLine1="        &lt;item name=&quot;strokeColor&quot;>@color/contextual_card_stroke_color&lt;/item>"
        errorLine2="                                 ^">
        <location
            file="res/values/styles.xml"
            line="475"
            column="34"/>
    </issue>

    <issue
        id="HardCodedColor"
        severity="Error"
+1 −1
Original line number Diff line number Diff line
@@ -29,6 +29,6 @@
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="-8dp"
            layout="@layout/preference_material" />
            layout="@layout/settingslib_preference" />
    </com.google.android.material.card.MaterialCardView>
</FrameLayout>
+0 −2
Original line number Diff line number Diff line
@@ -103,9 +103,7 @@
    <color name="homepage_wallpaper_background">#E51AD1</color>
    <color name="homepage_notification_background">#DD4C9D</color>

    <color name="contextual_card_stroke_color">#1f000000</color>
    <color name="contextual_card_dismissal_background">@*android:color/material_grey_100</color>
    <color name="contextual_card_background">@*android:color/background_device_default_light</color>
    <!-- End of dashboard/homepage icon background colors -->

    <color name="switchbar_background_color">@*android:color/material_grey_600</color>
+3 −4
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@
     limitations under the License.
-->

<resources>
<resources
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">

    <style name="Widget.ActionBar.Base"
           parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid"/>
@@ -472,11 +473,9 @@
        <item name="android:layout_marginBottom">@dimen/contextual_card_vertical_margin</item>
        <item name="android:layout_marginStart">@dimen/contextual_card_side_margin</item>
        <item name="android:layout_marginEnd">@dimen/contextual_card_side_margin</item>
        <item name="cardBackgroundColor">@color/contextual_card_background</item>
        <item name="cardBackgroundColor">?androidprv:attr/colorSurface</item>
        <item name="cardCornerRadius">@dimen/contextual_card_corner_radius</item>
        <item name="cardElevation">0dp</item>
        <item name="strokeColor">@color/contextual_card_stroke_color</item>
        <item name="strokeWidth">1dp</item>
        <item name="rippleColor">?android:attr/colorControlHighlight</item>
    </style>

+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:title="@string/storage_settings">
    <Preference
    <com.android.settings.widget.CardPreference
        android:key="free_up_space"
        android:order="4"
        android:title="@string/storage_free_up_space_title"
Loading