Update strings for guest removal affordance and dialog

Exit guest -> Remove guest
etc.

Bug: 16495144
Change-Id: Ieb44e886ea537682a6922046c0f63cef1456c6d8
This commit is contained in:
Amith Yamasani
2014-08-18 16:42:43 -07:00
parent f14fa7ed4e
commit 94c0181c8f
2 changed files with 7 additions and 5 deletions

View File

@@ -5257,11 +5257,13 @@
<!-- Title for Guest user [CHAR LIMIT=35] --> <!-- Title for Guest user [CHAR LIMIT=35] -->
<string name="user_guest">Guest</string> <string name="user_guest">Guest</string>
<!-- Label for item to exit guest mode [CHAR LIMIT=35] --> <!-- Label for item to exit guest mode [CHAR LIMIT=35] -->
<string name="user_exit_guest_title">Exit guest</string> <string name="user_exit_guest_title">Remove guest</string>
<!-- Title of dialog to user to confirm exiting guest. [CHAR LIMIT=50] --> <!-- Title of dialog to user to confirm exiting guest. [CHAR LIMIT=50] -->
<string name="user_exit_guest_confirm_title">Exiting guest session?</string> <string name="user_exit_guest_confirm_title">Remove guest?</string>
<!-- Message to user to confirm exiting guest. [CHAR LIMIT=none] --> <!-- Message to user to confirm exiting guest. [CHAR LIMIT=none] -->
<string name="user_exit_guest_confirm_message">Ending the guest session will remove local data.</string> <string name="user_exit_guest_confirm_message">All apps and data in this session will be deleted.</string>
<!-- Label for button in confirmation dialog when exiting guest session [CHAR LIMIT=35] -->
<string name="user_exit_guest_dialog_remove">Remove</string>
<!-- Title of preference to enable calling[CHAR LIMIT=40] --> <!-- Title of preference to enable calling[CHAR LIMIT=40] -->
<string name="user_enable_calling">Allow phone calls</string> <string name="user_enable_calling">Allow phone calls</string>

View File

@@ -630,14 +630,14 @@ public class UserSettings extends SettingsPreferenceFragment
Dialog dlg = new AlertDialog.Builder(context) Dialog dlg = new AlertDialog.Builder(context)
.setTitle(R.string.user_exit_guest_confirm_title) .setTitle(R.string.user_exit_guest_confirm_title)
.setMessage(R.string.user_exit_guest_confirm_message) .setMessage(R.string.user_exit_guest_confirm_message)
.setPositiveButton(android.R.string.yes, .setPositiveButton(R.string.user_exit_guest_dialog_remove,
new DialogInterface.OnClickListener() { new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
exitGuest(); exitGuest();
} }
}) })
.setNegativeButton(android.R.string.no, null) .setNegativeButton(android.R.string.cancel, null)
.create(); .create();
return dlg; return dlg;
} }