First pass at USB-only tether settings.
bug:2281900
This commit is contained in:
@@ -1256,6 +1256,27 @@
|
||||
<!-- Main settings screen, Call settings summary for item to go into call settings -->
|
||||
<string name="call_settings_summary">Set up voicemail, call forwarding, call waiting, caller ID</string>
|
||||
|
||||
<!-- Tethering controls, item title to go into the tethering settings -->
|
||||
<string name="tether_settings_title">Tethering settings</string>
|
||||
<!-- Tethering controls, the item summary for the user to go into the tethering settings -->
|
||||
<string name="tether_settings_summary">Set up and manage tethering</string>
|
||||
|
||||
<!-- Title of the screen for adjusting tethering settings -->
|
||||
<string name="tether_screen_title">Tethering settings</string>
|
||||
|
||||
<!-- Tethering notification toggle - controls whether a notification will appear when a tetherable connection becomes available -->
|
||||
<string name="enable_tether_notice_checkbox">Notifications</string>
|
||||
<!-- Tethering notification summary explains the notification toggle -->
|
||||
<string name="enable_tether_notice_checkbox_summary">Show a notification when USB tethering is available</string>
|
||||
<!-- USB Tethering options -->
|
||||
<string name="usb_tethering_button_text">USB tethering</string>
|
||||
<!-- USB available subtext - shown when USB is connected but not currently being tethered -->
|
||||
<string name="usb_tethering_available_subtext">USB connected, select to tether</string>
|
||||
<!-- USB tethered subtext - shown when USB is connected and being tethered -->
|
||||
<string name="usb_tethering_active_subtext">Connected, select to disconnect</string>
|
||||
<!-- USB unavailable subtext - shown when USB is not connected -->
|
||||
<string name="usb_tethering_unavailable_subtext">USB not connected</string>
|
||||
|
||||
<!-- Wireless controls, item title to go into the network settings -->
|
||||
<string name="network_settings_title">Mobile networks</string>
|
||||
<!-- Wireless controls, the item summary for the user to go into the network settings -->
|
||||
|
||||
35
res/xml/tether_prefs.xml
Normal file
35
res/xml/tether_prefs.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/tether_screen_title">
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="usb_tether_settings"
|
||||
android:title="@string/usb_tethering_button_text"
|
||||
android:widgetLayout="@*android:layout/preference_dialog" >
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="android"
|
||||
android:targetClass="com.android.internal.app.TetherActivity" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="enable_tether_notice"
|
||||
android:title="@string/enable_tether_notice_checkbox"
|
||||
android:summary="@string/enable_tether_notice_checkbox_summary"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -56,6 +56,15 @@
|
||||
android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen
|
||||
android:title="@string/tether_settings_title"
|
||||
android:summary="@string/tether_settings_summary">
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.android.settings.TetherSettings" />
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="vpn_settings"
|
||||
android:title="@string/vpn_settings_title"
|
||||
|
||||
Reference in New Issue
Block a user