Loading res/layout-sw600dp-land/confirm_lock_password.xml +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ android:layout_marginBottom="10dip" android:gravity="start" android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceLarge" android:textAppearance="?android:attr/textAppearanceMedium" /> <!-- Password entry field --> Loading res/layout-sw600dp/confirm_lock_password.xml +1 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:lines="2" android:textAppearance="?android:attr/textAppearanceLarge"/> android:textAppearance="?android:attr/textAppearanceMedium"/> <!-- spacer above text entry field --> <View Loading res/layout/confirm_lock_password.xml +1 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:lines="2" android:textAppearance="?android:attr/textAppearanceLarge"/> android:textAppearance="?android:attr/textAppearanceMedium"/> <!-- Password entry field --> <EditText android:id="@+id/password_entry" Loading res/values/strings.xml +15 −0 Original line number Diff line number Diff line Loading @@ -3675,6 +3675,21 @@ <string name="secure_lock_encryption_warning">Because you\'ve turned on an accessibility service, your device won’t use your screen lock to enhance data encryption.</string> <!-- Message to the user to enter his pattern before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_pattern_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Message to the user to enter his PIN before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_pin_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Message to the user to enter his password before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_password_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Title for the capability of an accessibility service to receive events and keys. --> <string name="capability_title_receiveAccessibilityEvents">Observe your actions</string> <!-- Description for the capability of an accessibility service to receive events and keys. --> Loading src/com/android/settings/ChooseLockSettingsHelper.java +6 −2 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public final class ChooseLockSettingsHelper { case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC: case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX: // TODO: update UI layout for ConfirmPassword to show message and details launched = confirmPassword(request, returnCredentials); launched = confirmPassword(request, message, returnCredentials); break; } return launched; Loading Loading @@ -116,13 +116,17 @@ public final class ChooseLockSettingsHelper { /** * Launch screen to confirm the existing lock password. * @param message shown in header of ConfirmLockPassword if not null * @param returnCredentials if true, put credentials into intent. * @see #onActivityResult(int, int, android.content.Intent) * @return true if we launched an activity to confirm password */ private boolean confirmPassword(int request, boolean returnCredentials) { private boolean confirmPassword(int request, CharSequence message, boolean returnCredentials) { if (!mLockPatternUtils.isLockPasswordEnabled()) return false; final Intent intent = new Intent(); // supply header text in the intent intent.putExtra(ConfirmLockPattern.HEADER_TEXT, message); intent.setClassName("com.android.settings", returnCredentials ? ConfirmLockPassword.InternalActivity.class.getName() Loading Loading
res/layout-sw600dp-land/confirm_lock_password.xml +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ android:layout_marginBottom="10dip" android:gravity="start" android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceLarge" android:textAppearance="?android:attr/textAppearanceMedium" /> <!-- Password entry field --> Loading
res/layout-sw600dp/confirm_lock_password.xml +1 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:lines="2" android:textAppearance="?android:attr/textAppearanceLarge"/> android:textAppearance="?android:attr/textAppearanceMedium"/> <!-- spacer above text entry field --> <View Loading
res/layout/confirm_lock_password.xml +1 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:lines="2" android:textAppearance="?android:attr/textAppearanceLarge"/> android:textAppearance="?android:attr/textAppearanceMedium"/> <!-- Password entry field --> <EditText android:id="@+id/password_entry" Loading
res/values/strings.xml +15 −0 Original line number Diff line number Diff line Loading @@ -3675,6 +3675,21 @@ <string name="secure_lock_encryption_warning">Because you\'ve turned on an accessibility service, your device won’t use your screen lock to enhance data encryption.</string> <!-- Message to the user to enter his pattern before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_pattern_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Message to the user to enter his PIN before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_pin_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Message to the user to enter his password before enabling an accessibility service. [CHAR LIMIT=NONE] --> <string name="enable_service_password_reason">Turning on <xliff:g id="service" example="TalkBack">%1$s</xliff:g> reduces data protection. </string> <!-- Title for the capability of an accessibility service to receive events and keys. --> <string name="capability_title_receiveAccessibilityEvents">Observe your actions</string> <!-- Description for the capability of an accessibility service to receive events and keys. --> Loading
src/com/android/settings/ChooseLockSettingsHelper.java +6 −2 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public final class ChooseLockSettingsHelper { case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC: case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX: // TODO: update UI layout for ConfirmPassword to show message and details launched = confirmPassword(request, returnCredentials); launched = confirmPassword(request, message, returnCredentials); break; } return launched; Loading Loading @@ -116,13 +116,17 @@ public final class ChooseLockSettingsHelper { /** * Launch screen to confirm the existing lock password. * @param message shown in header of ConfirmLockPassword if not null * @param returnCredentials if true, put credentials into intent. * @see #onActivityResult(int, int, android.content.Intent) * @return true if we launched an activity to confirm password */ private boolean confirmPassword(int request, boolean returnCredentials) { private boolean confirmPassword(int request, CharSequence message, boolean returnCredentials) { if (!mLockPatternUtils.isLockPasswordEnabled()) return false; final Intent intent = new Intent(); // supply header text in the intent intent.putExtra(ConfirmLockPattern.HEADER_TEXT, message); intent.setClassName("com.android.settings", returnCredentials ? ConfirmLockPassword.InternalActivity.class.getName() Loading