Fix landscape layout of BiometricPrompt pattern screen
Test: Manual:
1. Enter "BiometricPrompt Demo" app.
2. Check "Allow device credential", uncheck "Require confirmation".
3. Check any Radio button. (e.g. Persist across configuration changes)
4. Rotate DUT to landscape mode.
5. Tap the "AUTHENTICATE" then deliberately unrecognized.
6. Tap "Use pattern" button.
Before: The pattern entry UI is clipped and the text is not visible.
After: The pattern entry UI fits on the screen and is interactable.
Fixes: 149545148
Change-Id: Iefc0a7ce60a8caeb537b46ec821df0ea4d80e843
diff --git a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml
index c40e47d..e791c8a 100644
--- a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml
+++ b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml
@@ -65,11 +65,26 @@
android:layout_height="0dp"
android:layout_weight="1"/>
+ <TextView
+ android:id="@+id/error"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:textSize="16sp"
+ android:gravity="center"
+ android:textColor="?android:attr/colorError"/>
+
+ <Space
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_weight="1"/>
+
</LinearLayout>
<LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
android:orientation="vertical"
android:gravity="center"
android:paddingLeft="0dp"
@@ -93,20 +108,6 @@
</FrameLayout>
- <TextView
- android:id="@+id/error"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="24dp"
- android:textSize="16sp"
- android:gravity="center"
- android:textColor="?android:attr/colorError"/>
-
- <Space
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_weight="1"/>
-
</LinearLayout>
</com.android.systemui.biometrics.AuthCredentialPatternView>
\ No newline at end of file