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

Commit 939f2a9e authored by YK Hung's avatar YK Hung Committed by Automerger Merge Worker
Browse files

Merge "Implements the buttons layout for the extra defend" into tm-qpr-dev am: aa326285

parents 6992c28b aa326285
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -57,6 +57,30 @@
            android:maxLines="10"
            style="@style/PreferenceSummaryTextStyle"/>

        <RelativeLayout
            android:id="@+id/card_preference_buttons"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:layout_below="@android:id/summary"
            android:visibility="gone">
            <Button
                android:id="@android:id/button1"
                style="@style/CardPreferencePrimaryButton"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_marginHorizontal="4dp"
                android:layout_toStartOf="@android:id/button2"
                android:visibility="gone"/>
            <Button
                android:id="@android:id/button2"
                style="@style/CardPreferenceBorderlessButton"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_marginHorizontal="4dp"
                android:layout_alignParentEnd="true"
                android:visibility="gone"/>
        </RelativeLayout>
    </RelativeLayout>

    <!-- Preference should place its actual preference widget here. -->
+3 −0
Original line number Diff line number Diff line
@@ -625,6 +625,9 @@
    <!-- Whether to put the apps with system UID into system component bucket or not -->
    <bool name="config_battery_combine_system_components">false</bool>

    <!-- The extra value for battery tip -->
    <integer name="config_battery_extra_tip_value">12</integer>

    <!-- Whether to enable the advanced vpn feature. The default is not to. -->
    <bool name="config_advanced_vpn_enabled">false</bool>

+4 −0
Original line number Diff line number Diff line
@@ -6283,6 +6283,8 @@
    <string name="battery_tip_limited_temporarily_title">Charging temporarily limited</string>
    <!-- Summary for the battery limited temporarily tip [CHAR LIMIT=NONE] -->
    <string name="battery_tip_limited_temporarily_summary">To preserve your battery. Learn more.</string>
    <!-- Summary for the battery limited temporarily extra tip [CHAR LIMIT=NONE] -->
    <string name="battery_tip_limited_temporarily_extra_summary"><xliff:g id="percent" example="10%">%1$s</xliff:g></string>
    <!-- Text of battery limited temporarily tip resume charge button. [CHAR LIMIT=NONE] -->
    <string name="battery_tip_limited_temporarily_dialog_resume_charge">Resume charging</string>
    <!-- Message of battery limited temporarily tip. [CHAR LIMIT=NONE] -->
@@ -6339,6 +6341,8 @@
    <string name="battery_tip_unrestrict_app_dialog_ok">Remove</string>
    <!-- CANCEL button for dialog to remove restriction for app [CHAR LIMIT=NONE] -->
    <string name="battery_tip_unrestrict_app_dialog_cancel">Cancel</string>
    <!-- Charge to full button for battery defender tips [CHAR LIMIT=NONE] -->
    <string name="battery_tip_charge_to_full_button">Charge to full</string>
    <!-- Message for battery tip dialog to show the battery summary -->
    <string name="battery_tip_dialog_summary_message" product="default">Your apps are using a normal amount of battery. If apps use too much battery, your phone will suggest actions you can take.\n\nYou can always turn on Battery Saver if you\u2019re running low on battery.</string>
+15 −0
Original line number Diff line number Diff line
@@ -969,4 +969,19 @@
        <item name="android:textColor">?android:attr/textColorPrimary</item>
        <item name="android:textDirection">locale</item>
    </style>

    <style name="CardPreferencePrimaryButton" parent="@style/ActionPrimaryButton">
        <item name="android:fontFamily">google-sans-medium</item>
        <item name="android:textSize">14sp</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:singleLine">true</item>
    </style>

    <style name="CardPreferenceBorderlessButton"
        parent="@style/Widget.AppCompat.Button.Borderless.Colored">
        <item name="android:fontFamily">google-sans-medium</item>
        <item name="android:textSize">14sp</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:singleLine">true</item>
    </style>
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -139,6 +139,11 @@ public interface PowerUsageFeatureProvider {
     */
    boolean isAdaptiveChargingSupported();

    /**
     * Returns {@code true} if current defender mode is extra defend
     */
    boolean isExtraDefend();

    /**
     * Gets a intent for one time bypass charge limited to resume charging.
     */
Loading