From 7cecf2d3bac85d044ae01c4c822259f2e4573112 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Tue, 16 May 2017 11:50:20 -0700 Subject: [PATCH] Show aditional WiFi calling message. Bug: 37624313 Test: manual - locally apply this setting and verify that the additional text is shown. Change-Id: I8a15a9aeb71a0daab1ae4533f2c3b7d05c57bc5f --- res/values-mcc262-mnc02/strings.xml | 19 +++++++++++++++++++ res/values/strings.xml | 2 ++ .../android/settings/WifiCallingSettings.java | 4 +++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 res/values-mcc262-mnc02/strings.xml diff --git a/res/values-mcc262-mnc02/strings.xml b/res/values-mcc262-mnc02/strings.xml new file mode 100644 index 00000000000..17f92723392 --- /dev/null +++ b/res/values-mcc262-mnc02/strings.xml @@ -0,0 +1,19 @@ + + + + + \n\nYou can\u2019t make emergency calls through Wi-Fi calling. If you try to make an emergency call, your device will automatically use the mobile network. Emergency calls can only be made in areas with mobile network coverage. + diff --git a/res/values/strings.xml b/res/values/strings.xml index 6b12237d98d..54b6c046921 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2124,6 +2124,8 @@ When Wi-Fi calling is on, your phone can route calls via Wi-Fi networks or your carrier\u2019s network, depending on your preference and which signal is stronger. Before turning on this feature, check with your carrier regarding fees and other details. + + Update Emergency Address diff --git a/src/com/android/settings/WifiCallingSettings.java b/src/com/android/settings/WifiCallingSettings.java index 78f9de68adf..cb661ed9d57 100644 --- a/src/com/android/settings/WifiCallingSettings.java +++ b/src/com/android/settings/WifiCallingSettings.java @@ -152,7 +152,9 @@ public class WifiCallingSettings extends SettingsPreferenceFragment mEmptyView = (TextView) getView().findViewById(android.R.id.empty); setEmptyView(mEmptyView); - mEmptyView.setText(R.string.wifi_calling_off_explanation); + String emptyViewText = activity.getString(R.string.wifi_calling_off_explanation) + + activity.getString(R.string.wifi_calling_off_explanation_2); + mEmptyView.setText(emptyViewText); } @Override