From 2d6497d2d19f0cddc488ea4362221b7e08481c30 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 19 Jun 2012 15:44:15 -0700 Subject: Use string resources instead of literals for backup password confirmations Localizability is good. Bug 6683158 Change-Id: I205e4a09f5137e18d4085fcc041fae86f26ab188 --- src/com/android/settings/SetFullBackupPassword.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/com/android/settings/SetFullBackupPassword.java b/src/com/android/settings/SetFullBackupPassword.java index 9f3f29f..4ab096b 100644 --- a/src/com/android/settings/SetFullBackupPassword.java +++ b/src/com/android/settings/SetFullBackupPassword.java @@ -47,7 +47,7 @@ public class SetFullBackupPassword extends Activity { // Mismatch between new pw and its confirmation re-entry Log.i(TAG, "password mismatch"); Toast.makeText(SetFullBackupPassword.this, - "!!! New password and confirmation don't match !!!", + R.string.local_backup_password_toast_confirmation_mismatch, Toast.LENGTH_LONG).show(); return; } @@ -58,14 +58,14 @@ Log.i(TAG, "password mismatch"); // success Log.i(TAG, "password set successfully"); Toast.makeText(SetFullBackupPassword.this, - "!!! New backup password set !!!", + R.string.local_backup_password_toast_success, Toast.LENGTH_LONG).show(); finish(); } else { // failure -- bad existing pw, usually Log.i(TAG, "failure; password mismatch?"); Toast.makeText(SetFullBackupPassword.this, - "!!! Failure setting backup password !!!", + R.string.local_backup_password_toast_validation_failure, Toast.LENGTH_LONG).show(); } } else if (v == mCancel) { -- cgit v1.1