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

Commit fa94302a authored by Hao Dong's avatar Hao Dong
Browse files

Fix credential view panel color and input field moving up.

Bug: 335125060
Test: manually test on test app
Flag: com.android.systemui.constraint_bp

Change-Id: I29cc560c9b89b935124ef965a96a23b8d466a589
parent c94813df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,9 +28,9 @@

    <View
        android:id="@+id/panel"
        style="@style/AuthNonCredentialPanelStyle"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="?androidprv:attr/materialColorSurfaceContainer"
        android:elevation="@dimen/biometric_dialog_elevation"/>

    <ScrollView
+4 −1
Original line number Diff line number Diff line
@@ -338,8 +338,11 @@
        <item name="android:textSize">16sp</item>
    </style>

    <style name="AuthCredentialPanelStyle">
    <style name="AuthNonCredentialPanelStyle">
        <item name="android:background">?androidprv:attr/materialColorSurfaceBright</item>
    </style>

    <style name="AuthCredentialPanelStyle" parent="AuthNonCredentialPanelStyle">
        <item name="android:clickable">true</item>
        <item name="android:clipToOutline">true</item>
        <item name="android:importantForAccessibility">no</item>
+3 −1
Original line number Diff line number Diff line
@@ -515,7 +515,9 @@ public class AuthContainerView extends LinearLayout
        } else {
            throw new IllegalStateException("Unknown credential type: " + credentialType);
        }
        mCredentialView = factory.inflate(layoutResourceId, null, false);
        // TODO(b/288175645): Once AuthContainerView is removed, set 0dp in credential view xml
        //  files with the corresponding left/right or top/bottom constraints being set to "parent".
        mCredentialView = factory.inflate(layoutResourceId, mLayout, false);

        // The background is used for detecting taps / cancelling authentication. Since the
        // credential view is full-screen and should not be canceled from background taps,