From 7868acfa74099f02f1f2c14243af4ae7506351e9 Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Mon, 9 Dec 2019 12:52:14 +0000 Subject: [PATCH] Update work profile lock in Settings to latest spec * Updated FrameLayout of work profile lock in Settings to use GlifLayout * Removed old background image of work profile lock * Updated text for PIN, password and pattern * Added enterprise logo to work profile lock Bug: 141290838 Test: Manual testing atest com.android.settings.password Change-Id: Ie09974857b6c76a182a8075b9e1964a2e0af0de9 --- res/drawable/ic_enterprise.xml | 25 ++++ res/layout-land/confirm_lock_password.xml | 133 +++++++++-------- res/layout-land/confirm_lock_pattern.xml | 140 +++++++++--------- res/layout-sw600dp/confirm_lock_password.xml | 7 +- res/layout-sw600dp/confirm_lock_pattern.xml | 14 +- res/layout/confirm_lock_password_base.xml | 90 ++++++----- res/layout/confirm_lock_pattern_base.xml | 136 ++++++++--------- res/values/strings.xml | 8 +- .../ConfirmDeviceCredentialActivity.java | 2 - .../ConfirmDeviceCredentialBaseActivity.java | 3 +- .../ConfirmDeviceCredentialBaseFragment.java | 3 - .../password/ConfirmLockPassword.java | 21 +-- .../settings/password/ConfirmLockPattern.java | 12 +- 13 files changed, 330 insertions(+), 264 deletions(-) create mode 100644 res/drawable/ic_enterprise.xml diff --git a/res/drawable/ic_enterprise.xml b/res/drawable/ic_enterprise.xml new file mode 100644 index 00000000000..c2d9df61893 --- /dev/null +++ b/res/drawable/ic_enterprise.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/res/layout-land/confirm_lock_password.xml b/res/layout-land/confirm_lock_password.xml index 544dd269d84..546ef67b003 100644 --- a/res/layout-land/confirm_lock_password.xml +++ b/res/layout-land/confirm_lock_password.xml @@ -13,81 +13,98 @@ See the License for the specific language governing permissions and limitations under the License. --> - + android:icon="@drawable/ic_enterprise" + android:layout="@layout/sud_glif_blank_template"> - - - + - - - - - + android:layout_height="wrap_content" + android:orientation="vertical"> -