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

Commit 2fb54c57 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Let biometric prompt button text wrap to new line" into rvc-dev am:...

Merge "Let biometric prompt button text wrap to new line" into rvc-dev am: 3987866c am: 8f543e09

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11936774

Change-Id: I58175acbc44e443ed6504643718e3f0f692c9760
parents 3d27e629 8f543e09
Loading
Loading
Loading
Loading
+19 −15
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingHorizontal="24dp"
        android:paddingTop="16dp"
        android:paddingBottom="24dp"
        android:paddingVertical="12dp"
        android:textSize="12sp"
        android:gravity="center_horizontal"
        android:accessibilityLiveRegion="polite"
@@ -60,22 +59,23 @@
    <LinearLayout
        android:id="@+id/button_bar"
        android:layout_width="match_parent"
        android:layout_height="72dip"
        android:paddingTop="24dp"
        android:layout_gravity="center_vertical"
        android:layout_height="88dp"
        style="?android:attr/buttonBarStyle"
        android:orientation="horizontal">
        android:orientation="horizontal"
        android:paddingTop="16dp">
        <Space android:id="@+id/leftSpacer"
            android:layout_width="12dp"
            android:layout_width="8dp"
            android:layout_height="match_parent"
            android:visibility="visible" />
        <!-- Negative Button -->
        <Button android:id="@+id/button_negative"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_height="wrap_content"
            style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
            android:gravity="center"
            android:maxLines="2"/>
            android:layout_gravity="center_vertical"
            android:ellipsize="end"
            android:maxLines="2"
            android:maxWidth="@dimen/biometric_dialog_button_negative_max_width"/>
        <Space android:id="@+id/middleSpacer"
            android:layout_width="0dp"
            android:layout_height="match_parent"
@@ -84,23 +84,27 @@
        <!-- Positive Button -->
        <Button android:id="@+id/button_positive"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_height="wrap_content"
            style="@*android:style/Widget.DeviceDefault.Button.Colored"
            android:gravity="center"
            android:layout_gravity="center_vertical"
            android:ellipsize="end"
            android:maxLines="2"
            android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
            android:text="@string/biometric_dialog_confirm"
            android:visibility="gone"/>
        <!-- Try Again Button -->
        <Button android:id="@+id/button_try_again"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_height="wrap_content"
            style="@*android:style/Widget.DeviceDefault.Button.Colored"
            android:gravity="center"
            android:layout_gravity="center_vertical"
            android:ellipsize="end"
            android:maxLines="2"
            android:maxWidth="@dimen/biometric_dialog_button_positive_max_width"
            android:text="@string/biometric_dialog_try_again"
            android:visibility="gone"/>
        <Space android:id="@+id/rightSpacer"
            android:layout_width="12dip"
            android:layout_width="8dp"
            android:layout_height="match_parent"
            android:visibility="visible" />
    </LinearLayout>
+3 −0
Original line number Diff line number Diff line
@@ -41,4 +41,7 @@
    <dimen name="bubble_padding_top">4dp</dimen>

    <dimen name="controls_activity_view_top_offset">25dp</dimen>

    <dimen name="biometric_dialog_button_negative_max_width">140dp</dimen>
    <dimen name="biometric_dialog_button_positive_max_width">116dp</dimen>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,8 @@

    <!-- Biometric Dialog values -->
    <dimen name="biometric_dialog_biometric_icon_size">64dp</dimen>
    <dimen name="biometric_dialog_button_negative_max_width">160dp</dimen>
    <dimen name="biometric_dialog_button_positive_max_width">136dp</dimen>
    <dimen name="biometric_dialog_corner_size">4dp</dimen>
    <!-- Y translation when showing/dismissing the dialog-->
    <dimen name="biometric_dialog_animation_translation_offset">350dp</dimen>