diff --git a/res/values/strings.xml b/res/values/strings.xml index 09cfa15bf43..bb5b3daf34f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5392,10 +5392,6 @@ All apps and data in this session will be deleted. Remove - - Information you enter here can help first responders in an emergency. It is stored on your device only, but anyone can read it from the emergency dialer without unlocking your phone. - - Continue Turn on phone calls @@ -5413,6 +5409,8 @@ Call and SMS history will be shared with this user. Emergency information + + Accessible by anyone from the emergency dialer without unlocking your phone Allow apps and content diff --git a/res/xml/user_settings.xml b/res/xml/user_settings.xml index b89f7668eaf..8d20f31d90a 100644 --- a/res/xml/user_settings.xml +++ b/res/xml/user_settings.xml @@ -38,5 +38,6 @@ + android:title="@string/emergency_info_title" + android:summary="@string/emergency_info_subtitle"/> diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java index d29e612b6f2..1c0260fe35d 100644 --- a/src/com/android/settings/users/UserSettings.java +++ b/src/com/android/settings/users/UserSettings.java @@ -115,7 +115,6 @@ public class UserSettings extends SettingsPreferenceFragment private static final int DIALOG_NEED_LOCKSCREEN = 7; private static final int DIALOG_CONFIRM_EXIT_GUEST = 8; private static final int DIALOG_USER_PROFILE_EDITOR = 9; - private static final int DIALOG_EMERGENCY_INFO_CONSENT = 10; private static final int MESSAGE_UPDATE_LIST = 1; private static final int MESSAGE_SETUP_USER = 2; @@ -609,22 +608,6 @@ public class UserSettings extends SettingsPreferenceFragment android.os.Process.myUserHandle()); return dlg; } - case DIALOG_EMERGENCY_INFO_CONSENT : { - Dialog dlg = new AlertDialog.Builder(context) - .setTitle(R.string.emergency_info_title) - .setMessage(R.string.user_emergency_info_consent) - .setPositiveButton(R.string.emergency_info_continue, - new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - Intent intent = new Intent(ACTION_EDIT_EMERGENCY_INFO); - startActivity(intent); - } - }) - .setNegativeButton(android.R.string.cancel, null) - .create(); - return dlg; - } default: return null; } @@ -966,7 +949,8 @@ public class UserSettings extends SettingsPreferenceFragment onAddUserClicked(USER_TYPE_USER); } } else if (pref == mEmergencyInfoPreference) { - showDialog(DIALOG_EMERGENCY_INFO_CONSENT); + Intent intent = new Intent(ACTION_EDIT_EMERGENCY_INFO); + startActivity(intent); } return false; }