Update strings for guest removal affordance and dialog
Exit guest -> Remove guest etc. Bug: 16495144 Change-Id: Ieb44e886ea537682a6922046c0f63cef1456c6d8
This commit is contained in:
@@ -5257,11 +5257,13 @@
|
||||
<!-- Title for Guest user [CHAR LIMIT=35] -->
|
||||
<string name="user_guest">Guest</string>
|
||||
<!-- 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] -->
|
||||
<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] -->
|
||||
<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] -->
|
||||
<string name="user_enable_calling">Allow phone calls</string>
|
||||
|
@@ -630,14 +630,14 @@ public class UserSettings extends SettingsPreferenceFragment
|
||||
Dialog dlg = new AlertDialog.Builder(context)
|
||||
.setTitle(R.string.user_exit_guest_confirm_title)
|
||||
.setMessage(R.string.user_exit_guest_confirm_message)
|
||||
.setPositiveButton(android.R.string.yes,
|
||||
.setPositiveButton(R.string.user_exit_guest_dialog_remove,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
exitGuest();
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.no, null)
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.create();
|
||||
return dlg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user