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

Commit 9e973e70 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Revert "Update work challenge to align with material next"" into sc-v2-dev am: f72c976d

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

Change-Id: I66ad2b78729e732160ecfdb13b69702283a4b15a
parents 81bd66a5 f72c976d
Loading
Loading
Loading
Loading
+50 −57
Original line number Diff line number Diff line
@@ -18,71 +18,64 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:elevation="@dimen/biometric_dialog_elevation"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    android:orientation="vertical"
    android:gravity="center_horizontal"
    android:elevation="@dimen/biometric_dialog_elevation">

        <LinearLayout
            android:id="@+id/auth_credential_header"
            style="@style/AuthCredentialHeaderStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true">
    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <ImageView
        android:id="@+id/icon"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@null" />
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

    <TextView
        android:id="@+id/title"
                style="@style/TextAppearance.AuthCredential.Title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Title"/>

    <TextView
        android:id="@+id/subtitle"
                style="@style/TextAppearance.AuthCredential.Subtitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Subtitle"/>

    <TextView
        android:id="@+id/description"
                style="@style/TextAppearance.AuthCredential.Description"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />

        </LinearLayout>

        <LinearLayout
        android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical"
            android:layout_alignParentBottom="true">
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Description"/>

    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <ImeAwareEditText
        android:id="@+id/lockPassword"
                style="@style/TextAppearance.AuthCredential.PasswordEntry"
        android:layout_width="208dp"
        android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
        android:layout_gravity="center_horizontal"
        android:minHeight="48dp"
        android:gravity="center"
        android:inputType="textPassword"
                android:minHeight="48dp" />
        android:maxLength="500"
        android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
        style="@style/TextAppearance.AuthCredential.PasswordEntry"/>

    <TextView
        android:id="@+id/error"
                style="@style/TextAppearance.AuthCredential.Error"
        android:layout_width="match_parent"
                android:layout_height="wrap_content" />

        </LinearLayout>
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Error"/>

    </RelativeLayout>
    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="5"/>

</com.android.systemui.biometrics.AuthCredentialPasswordView>
 No newline at end of file
+60 −65
Original line number Diff line number Diff line
@@ -22,81 +22,76 @@
    android:gravity="center_horizontal"
    android:elevation="@dimen/biometric_dialog_elevation">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/auth_credential_header"
            style="@style/AuthCredentialHeaderStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <ImageView
        android:id="@+id/icon"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:contentDescription="@null" />
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

    <TextView
        android:id="@+id/title"
                style="@style/TextAppearance.AuthCredential.Title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Title"/>

    <TextView
        android:id="@+id/subtitle"
                style="@style/TextAppearance.AuthCredential.Subtitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Subtitle"/>

    <TextView
        android:id="@+id/description"
                style="@style/TextAppearance.AuthCredential.Description"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        </LinearLayout>
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TextAppearance.AuthCredential.Description"/>

    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
            android:layout_below="@id/auth_credential_header"
            android:gravity="center"
        android:orientation="vertical"
        android:gravity="center"
        android:paddingLeft="0dp"
        android:paddingRight="0dp"
        android:paddingTop="0dp"
        android:paddingBottom="16dp"
            android:paddingTop="60dp">
        android:clipToPadding="false">

        <FrameLayout
                style="@style/LockPatternContainerStyle"
            android:layout_width="wrap_content"
            android:layout_height="0dp"
                android:layout_weight="1">
            android:layout_weight="1"
            style="@style/LockPatternContainerStyle">

            <com.android.internal.widget.LockPatternView
                android:id="@+id/lockPattern"
                    style="@style/LockPatternStyle"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                    android:layout_gravity="center" />
                android:layout_gravity="center"
                style="@style/LockPatternStyleBiometricPrompt"/>

        </FrameLayout>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true">

        <TextView
            android:id="@+id/error"
                style="@style/TextAppearance.AuthCredential.Error"
            android:layout_width="match_parent"
                android:layout_height="wrap_content" />
            android:layout_height="wrap_content"
            style="@style/TextAppearance.AuthCredential.Error"/>

    </LinearLayout>

    </RelativeLayout>
    <Space
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_weight="1"/>

</com.android.systemui.biometrics.AuthCredentialPatternView>
 No newline at end of file
+15 −27
Original line number Diff line number Diff line
@@ -200,9 +200,9 @@

    <style name="TextAppearance.DeviceManagementDialog.Title" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"/>

    <style name="TextAppearance.AuthCredential"
        parent="@android:style/TextAppearance.DeviceDefault">
    <style name="TextAppearance.AuthCredential">
        <item name="android:accessibilityLiveRegion">polite</item>
        <item name="android:gravity">center_horizontal</item>
        <item name="android:textAlignment">gravity</item>
        <item name="android:layout_gravity">top</item>
        <item name="android:textColor">?android:attr/textColorPrimary</item>
@@ -210,57 +210,44 @@

    <style name="TextAppearance.AuthCredential.Title">
        <item name="android:fontFamily">google-sans</item>
        <item name="android:layout_marginTop">20dp</item>
        <item name="android:textSize">36sp</item>
        <item name="android:paddingTop">12dp</item>
        <item name="android:paddingHorizontal">24dp</item>
        <item name="android:textSize">24sp</item>
    </style>

    <style name="TextAppearance.AuthCredential.Subtitle">
        <item name="android:fontFamily">google-sans</item>
        <item name="android:layout_marginTop">20dp</item>
        <item name="android:textSize">18sp</item>
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingHorizontal">24dp</item>
        <item name="android:textSize">16sp</item>
    </style>

    <style name="TextAppearance.AuthCredential.Description">
        <item name="android:fontFamily">google-sans</item>
        <item name="android:layout_marginTop">20dp</item>
        <item name="android:textSize">16sp</item>
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingHorizontal">24dp</item>
        <item name="android:textSize">14sp</item>
    </style>

    <style name="TextAppearance.AuthCredential.Error">
        <item name="android:paddingTop">6dp</item>
        <item name="android:paddingBottom">18dp</item>
        <item name="android:paddingHorizontal">24dp</item>
        <item name="android:textSize">14sp</item>
        <item name="android:textColor">?android:attr/colorError</item>
        <item name="android:gravity">center</item>
    </style>

    <style name="TextAppearance.AuthCredential.PasswordEntry">
    <style name="TextAppearance.AuthCredential.PasswordEntry" parent="@android:style/TextAppearance.DeviceDefault">
        <item name="android:gravity">center</item>
        <item name="android:singleLine">true</item>
        <item name="android:textColor">?android:attr/colorForeground</item>
        <item name="android:textSize">24sp</item>
    </style>

    <style name="AuthCredentialHeaderStyle">
        <item name="android:paddingStart">48dp</item>
        <item name="android:paddingEnd">24dp</item>
        <item name="android:paddingTop">28dp</item>
        <item name="android:paddingBottom">20dp</item>
        <item name="android:orientation">vertical</item>
        <item name="android:layout_gravity">top</item>
    </style>

    <style name="DeviceManagementDialogTitle">
        <item name="android:gravity">center</item>
        <item name="android:textAppearance">@style/TextAppearance.DeviceManagementDialog.Title</item>
    </style>

    <style name="AuthCredentialPasswordTheme" parent="@style/Theme.MaterialComponents.DayNight">
        <item name="colorPrimary">?android:attr/colorPrimary</item>
        <item name="colorPrimaryDark">?android:attr/colorPrimary</item>
    </style>

    <style name="TextAppearance.DeviceManagementDialog.Content" parent="@*android:style/TextAppearance.DeviceDefault.Subhead"/>

    <style name="BaseBrightnessDialogContainer" parent="@style/Theme.SystemUI">
@@ -320,8 +307,9 @@
        <item name="android:maxWidth">420dp</item>
        <item name="android:minHeight">0dp</item>
        <item name="android:minWidth">0dp</item>
        <item name="android:paddingHorizontal">60dp</item>
        <item name="android:paddingBottom">40dp</item>
        <item name="android:paddingBottom">0dp</item>
        <item name="android:paddingHorizontal">44dp</item>
        <item name="android:paddingTop">0dp</item>
    </style>

    <style name="LockPatternStyle">