Made keyguard pattern view unfocusable Keyguard pattern view was receiving focus, causing a gray rectangular background to show up when a physical keyboard was connected, which isn't intended behavior as physical keyboards cannot and should not interact with the pattern view. Fixes: 328650320 Test: Manual - set lock screen auth method to pattern, wake up tablet with spacebar/enter, ensure that there is no gray rectangle over the pattern view. Flag: NA (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f51cea53b19d7d10f8b574324b2cc077b7eaeba0) Merged-In: I768174728eeb269b04d927c25535d586b9a2a6d8 Change-Id: I768174728eeb269b04d927c25535d586b9a2a6d8
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_pattern_motion_layout.xml b/packages/SystemUI/res-keyguard/layout/keyguard_pattern_motion_layout.xml index b562d7b..6780e57 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_pattern_motion_layout.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_pattern_motion_layout.xml
@@ -85,6 +85,7 @@ android:layout_width="0dp" android:layout_height="0dp" android:layout_marginBottom="8dp" + android:focusable="false" androidprv:layout_constraintVertical_bias="1.0" androidprv:layout_constraintDimensionRatio="1.0" androidprv:layout_constraintStart_toStartOf="parent"
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_pattern_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_pattern_view.xml index d9011c2..d991581 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_pattern_view.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_pattern_view.xml
@@ -57,6 +57,7 @@ android:id="@+id/lockPatternView" android:layout_width="0dp" android:layout_height="0dp" + android:focusable="false" androidprv:layout_constraintTop_toBottomOf="@id/pattern_top_guideline" androidprv:layout_constraintBottom_toBottomOf="parent" androidprv:layout_constraintLeft_toLeftOf="parent"