Merge "Added WiFi Assistant settings." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cccc5defd6
79
res/layout/mac_preference.xml
Normal file
79
res/layout/mac_preference.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<View
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="@dimen/wifi_divider_height"
|
||||
android:background="@color/wifi_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:gravity="center_vertical"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="6dip"
|
||||
android:paddingBottom="6dip">
|
||||
|
||||
<TextView
|
||||
android:id="@+android:id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@android:id/title"
|
||||
android:layout_alignStart="@android:id/title"
|
||||
android:paddingStart="16dip"
|
||||
android:layout_marginEnd="16dip"
|
||||
android:visibility="gone"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:maxLines="4" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@android:id/widget_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@@ -85,4 +85,6 @@
|
||||
<!-- Avatar color used for guest -->
|
||||
<color name="grey_500">@*android:color/material_grey_500</color>
|
||||
|
||||
<color name="wifi_divider">#ffe0e0e0</color>
|
||||
|
||||
</resources>
|
||||
|
@@ -217,4 +217,6 @@
|
||||
<dimen name="bluetooth_dialog_padding">8dip</dimen>
|
||||
<integer name="bluetooth_name_length">32</integer>
|
||||
|
||||
<dimen name="wifi_divider_height">1px</dimen>
|
||||
|
||||
</resources>
|
||||
|
@@ -1486,7 +1486,7 @@
|
||||
<!-- Checkbox title for option to Automatically manage Wi\u2011Fi [CHAR LIMIT=40] -->
|
||||
<string name="wifi_automatically_manage_title">Automatically manage Wi\u2011Fi</string>
|
||||
<!-- Checkbox summary for option to Automatically manage Wi\u2011Fi [CHAR LIMIT=100] -->
|
||||
<string name="wifi_automatically_manage_summary">Let a Wi\u2011Fi assistant manage your Wi\u2011Fi connection</string>
|
||||
<string name="wifi_automatically_manage_summary">Let <xliff:g id="wifi_assistant">%1$s</xliff:g> manage your Wi\u2011Fi connection</string>
|
||||
<!-- Checkbox title for option for Wi\u2011Fi Assistant [CHAR LIMIT=40] -->
|
||||
<string name="wifi_assistant_setting_title">Wi\u2011Fi assistant</string>
|
||||
<!-- Checkbox summary for option for Wi\u2011Fi Assistant [CHAR LIMIT=40] -->
|
||||
|
@@ -18,31 +18,30 @@
|
||||
android:title="@string/wifi_advanced_titlebar">
|
||||
|
||||
<!-- android:dependency="enable_wifi" -->
|
||||
<CheckBoxPreference
|
||||
<SwitchPreference
|
||||
android:key="notify_open_networks"
|
||||
android:title="@string/wifi_notify_open_networks"
|
||||
android:summary="@string/wifi_notify_open_networks_summary"
|
||||
android:persistent="false" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="wifi_scan_always_available"
|
||||
android:title="@string/wifi_scan_always_available"
|
||||
android:summary="@string/wifi_scan_always_available_summary"
|
||||
android:persistent="false" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="wifi_assistant"
|
||||
android:title="@string/wifi_automatically_manage_title"
|
||||
android:summary="@string/wifi_assistant_setting_summary"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference
|
||||
android:key="sleep_policy"
|
||||
android:title="@string/wifi_setting_sleep_policy_title"
|
||||
android:persistent="false"
|
||||
android:entries="@array/wifi_sleep_policy_entries"
|
||||
android:entryValues="@array/wifi_sleep_policy_values"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="wifi_scan_always_available"
|
||||
android:title="@string/wifi_scan_always_available"
|
||||
android:summary="@string/wifi_scan_always_available_summary"
|
||||
android:persistent="false" />
|
||||
|
||||
<!-- android:dependency="enable_wifi" -->
|
||||
<CheckBoxPreference
|
||||
android:key="wifi_poor_network_detection"
|
||||
android:title="@string/wifi_poor_network_detection"
|
||||
android:summary="@string/wifi_poor_network_detection_summary"
|
||||
android:persistent="false" />
|
||||
android:entryValues="@array/wifi_sleep_policy_values" />
|
||||
|
||||
<ListPreference
|
||||
android:key="frequency_band"
|
||||
@@ -50,8 +49,7 @@
|
||||
android:summary="@string/wifi_setting_frequency_band_summary"
|
||||
android:persistent="false"
|
||||
android:entries="@array/wifi_frequency_band_entries"
|
||||
android:entryValues="@array/wifi_frequency_band_values"
|
||||
/>
|
||||
android:entryValues="@array/wifi_frequency_band_values" />
|
||||
|
||||
<Preference
|
||||
android:key="install_credentials"
|
||||
@@ -73,16 +71,10 @@
|
||||
android:title="@string/wifi_menu_wps_pin"
|
||||
android:persistent="false" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="suspend_optimizations"
|
||||
android:title="@string/wifi_suspend_optimizations"
|
||||
android:summary="@string/wifi_suspend_optimizations_summary"
|
||||
android:persistent="false" />
|
||||
|
||||
<Preference
|
||||
android:key="mac_address"
|
||||
android:title="@string/wifi_advanced_mac_address_title"
|
||||
android:layout="@layout/wifi_advance_layout" />
|
||||
android:layout="@layout/mac_preference" />
|
||||
|
||||
<Preference
|
||||
android:key="current_ip_address"
|
||||
|
Reference in New Issue
Block a user