diff --git a/res/values/strings.xml b/res/values/strings.xml
index 4992d6b316d..53b0c92ee9f 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5388,6 +5388,10 @@
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
@@ -5405,8 +5409,6 @@
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 8d20f31d90a..b89f7668eaf 100644
--- a/res/xml/user_settings.xml
+++ b/res/xml/user_settings.xml
@@ -38,6 +38,5 @@
+ android:title="@string/emergency_info_title" />
diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java
index 4b060a0dc61..8e3dccf6371 100644
--- a/src/com/android/settings/users/UserSettings.java
+++ b/src/com/android/settings/users/UserSettings.java
@@ -115,6 +115,7 @@ 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;
@@ -608,6 +609,22 @@ 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;
}
@@ -946,8 +963,7 @@ public class UserSettings extends SettingsPreferenceFragment
onAddUserClicked(USER_TYPE_USER);
}
} else if (pref == mEmergencyInfoPreference) {
- Intent intent = new Intent(ACTION_EDIT_EMERGENCY_INFO);
- startActivity(intent);
+ showDialog(DIALOG_EMERGENCY_INFO_CONSENT);
}
return false;
}