From 1e914eb875e8609e46b41f9cde64ed5fc6cc3a34 Mon Sep 17 00:00:00 2001 From: Doris Ling Date: Tue, 30 May 2017 17:28:06 -0700 Subject: [PATCH] Update summary for Hotspot & Tethering. - change summary for Bluetooth tethering and USB tethering to static text. - add strings for Wi-Fi hotspot settings page. Bug: 62069132 Test: manual Change-Id: Ibc550da33c192c604b65eb75d16c6c15a8b1ff7a --- res/values/strings.xml | 67 +++++++++----------- res/xml/tether_prefs.xml | 6 +- src/com/android/settings/TetherSettings.java | 44 +------------ 3 files changed, 37 insertions(+), 80 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 60fd8b0aad2..32c3e4201a4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2000,12 +2000,31 @@ Portable Wi\u2011Fi hotspot Wi\u2011Fi hotspot - - Use mobile connection to provide Wi\u2011Fi network - Not sharing this tablet\u2019s Internet connection via hotspot - - Not sharing this phone\u2019s Internet connection via hotspot + Not sharing Internet or content with other devices + + Sharing this tablet\u2019s Internet connection via hotspot + + Sharing this phone\u2019s Internet connection via hotspot + + App is sharing content. To share Internet connection, turn hotspot off, then on + + + + Wi\u2011Fi name + + Turning on %1$s... + + Other devices can connect to %1$s + + Wi\u2011Fi password + + AP Band + + Use hotspot to create a Wi\u2011Fi network for your other devices. Hotspot provides Internet using your mobile data connection. Additional mobile data charges may apply. + + Apps can create a hotspot to share content with nearby devices. + Turning hotspot on\u2026 @@ -3142,49 +3161,25 @@ USB USB tethering - - USB connected, check to tether - - Tethered - - Can\u2019t tether when USB storage is in use - - USB not connected - - Connect to turn on - - USB tethering error + Share phone\u2019s Internet connection via USB + Share tablet\u2019s Internet connection via USB Bluetooth tethering - - Sharing this tablet\u2019s Internet connection via Bluetooth - - Sharing this phone\u2019s Internet connection via Bluetooth - - Sharing this tablet\u2019s Internet connection to 1 device via Bluetooth - - Sharing this phone\u2019s Internet connection to 1 device via Bluetooth - - Sharing this tablet\u2019s Internet connection to %1$d devices via Bluetooth - - Sharing this phone\u2019s Internet connection to %1$d devices via Bluetooth + + Share tablet\u2019s Internet connection via Bluetooth + + Share phone\u2019s Internet connection via Bluetooth Sharing this %1$d\u2019s Internet connection via Bluetooth - - Not sharing this tablet\u2019s Internet connection via Bluetooth - - Not sharing this phone\u2019s Internet connection via Bluetooth - - Not tethered Can\u2019t tether to more than %1$d devices. %1$s will be untethered. - Use hotspot and tethering to provide Internet to other devices through your mobile data connection. + Use hotspot and tethering to provide Internet to other devices through your mobile data connection. Apps can also create a hotspot to share content with nearby devices. Help diff --git a/res/xml/tether_prefs.xml b/res/xml/tether_prefs.xml index a936a50620e..a5062915280 100644 --- a/res/xml/tether_prefs.xml +++ b/res/xml/tether_prefs.xml @@ -19,7 +19,8 @@ + android:title="@string/usb_tethering_button_text" + android:summary="@string/usb_tethering_subtext"/> + android:title="@string/bluetooth_tether_checkbox_text" + android:summary="@string/bluetooth_tethering_subtext"/> 1) { - String summary = getString( - R.string.bluetooth_tethering_devices_connected_subtext, - bluetoothTethered); - mBluetoothTether.setSummary(summary); - } else if (bluetoothTethered == 1) { - mBluetoothTether.setSummary( - R.string.bluetooth_tethering_device_connected_subtext); - } else if (bluetoothErrored) { - mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext); - } else { - mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext); - } } else { mBluetoothTether.setEnabled(!mDataSaverEnabled); mBluetoothTether.setChecked(false); - mBluetoothTether.setSummary(R.string.bluetooth_tethering_off_subtext); } } }