diff --git a/res-product/values/strings.xml b/res-product/values/strings.xml
index 3fcbd7f4e63..cc22617a255 100644
--- a/res-product/values/strings.xml
+++ b/res-product/values/strings.xml
@@ -720,7 +720,7 @@
Without unlocking your phone
- Without unlocking your tablet
+ Without unlocking your tablet
When you move your phone between portrait and landscape
diff --git a/res/drawable/button_border_selected.xml b/res/drawable/button_border_selected.xml
index 113ae0cf49d..3757517c179 100644
--- a/res/drawable/button_border_selected.xml
+++ b/res/drawable/button_border_selected.xml
@@ -18,9 +18,9 @@
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:shape="rectangle">
+ android:color="?androidprv:attr/materialColorSecondaryContainer" />
+ android:color="?androidprv:attr/materialColorOnSecondaryContainer"/>
diff --git a/res/layout/confirm_lock_pattern_base.xml b/res/layout/confirm_lock_pattern_base.xml
index 01f028e1684..a0dfe7f8469 100644
--- a/res/layout/confirm_lock_pattern_base.xml
+++ b/res/layout/confirm_lock_pattern_base.xml
@@ -29,8 +29,7 @@
+ android:orientation="vertical">
diff --git a/res/layout/confirm_lock_pattern_normal_base.xml b/res/layout/confirm_lock_pattern_normal_base.xml
index 7997ca79d9d..fca7e75cf9c 100644
--- a/res/layout/confirm_lock_pattern_normal_base.xml
+++ b/res/layout/confirm_lock_pattern_normal_base.xml
@@ -61,6 +61,7 @@
android:layout_marginStart="?attr/sudMarginStart"
android:layout_marginEnd="?attr/sudMarginEnd"
android:layout_marginTop="12dp"
+ android:layout_marginBottom="12dp"
android:gravity="center_vertical"/>
getString(
- R.string.lockpassword_strong_auth_required_work_pattern));
- } else {
- return mDevicePolicyManager.getResources().getString(
- WORK_PROFILE_CONFIRM_PATTERN,
- () -> getString(
- R.string.lockpassword_confirm_your_pattern_generic_profile));
- }
- } else {
+ if (!mIsManagedProfile) {
return isStrongAuthRequired
? getString(R.string.lockpassword_strong_auth_required_device_pattern)
: getString(R.string.lockpassword_confirm_your_pattern_generic);
}
+ return null;
}
private Object[][] getActiveViews() {
@@ -381,7 +368,9 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
CharSequence detailsText =
mDetailsText == null ? getDefaultDetails() : mDetailsText;
- mGlifLayout.setDescriptionText(detailsText);
+ if (detailsText != null) {
+ mGlifLayout.setDescriptionText(detailsText);
+ }
mErrorTextView.setText("");
updateErrorMessage(