Fix references to resources for Settings

Bug: 293810334
Test: m Settings
Change-Id: Ie140278f492ef7e1c062ec1ecae2866c521a86aa
This commit is contained in:
Chaohui Wang
2023-07-31 15:56:42 +08:00
parent ed505c25fa
commit 2541381259
247 changed files with 859 additions and 721 deletions

View File

@@ -49,7 +49,8 @@ public class SetFullBackupPassword extends Activity {
// Mismatch between new pw and its confirmation re-entry
Log.i(TAG, "password mismatch");
Toast.makeText(SetFullBackupPassword.this,
R.string.local_backup_password_toast_confirmation_mismatch,
com.android.settingslib.R
.string.local_backup_password_toast_confirmation_mismatch,
Toast.LENGTH_LONG).show();
return;
}
@@ -60,14 +61,15 @@ public class SetFullBackupPassword extends Activity {
// success
Log.i(TAG, "password set successfully");
Toast.makeText(SetFullBackupPassword.this,
R.string.local_backup_password_toast_success,
com.android.settingslib.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,
R.string.local_backup_password_toast_validation_failure,
com.android.settingslib.R
.string.local_backup_password_toast_validation_failure,
Toast.LENGTH_LONG).show();
}
} else if (v == mCancel) {