Update data limit notification icon + strings.
- Use a more specific disabled cellular data icon. - Reword framework strings to use "Cellular" instead of "Mobile" and avoid "enabled/disabled" - Update SystemUI's network limit dialog to follow suit. Bug:16185238 Change-Id: Ie9191990fab17cd7dc04395fad39f84bfff8349d
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1014 B |
Binary file not shown.
|
Before Width: | Height: | Size: 729 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
37
core/res/res/drawable/stat_notify_disabled_data.xml
Normal file
37
core/res/res/drawable/stat_notify_disabled_data.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<size
|
||||
android:width="24dp"
|
||||
android:height="24dp"/>
|
||||
|
||||
<viewport
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0"/>
|
||||
|
||||
<path
|
||||
android:fill="#FFFFFFFF"
|
||||
android:pathData="M40.709,4.5l-6.604,7.337 0.0,16.601 6.604,6.604z"/>
|
||||
<path
|
||||
android:fill="#FFFFFFFF"
|
||||
android:pathData="M32.305,13.838l-6.0629997,6.7370005 6.0629997,6.0629997z"/>
|
||||
<path
|
||||
android:fill="#FFFFFFFF"
|
||||
android:pathData="M15.498,40.5l0.0,-7.9869995 -7.205,7.9869995z"/>
|
||||
<path
|
||||
android:fill="#FFFFFFFF"
|
||||
android:pathData="M10.265,9.72l-2.5460005,2.545 9.971001,9.971 3.7139988,3.7140007 -4.105999,4.5619984 0.0,9.988001 6.6019993,0.0 0.0,-12.054001 1.8029995,1.8030014 0.0,10.250999 6.602001,0.0 0.0,-3.6479988 1.7999992,1.7999992 1.8479996,1.8479996 4.670002,4.669998 2.5459976,-2.5459976z"/>
|
||||
</vector>
|
||||
@@ -3979,16 +3979,6 @@
|
||||
<!-- Optional button to Skip a PreferenceActivity [CHAR LIMIT=20] -->
|
||||
<string name="skip_button_label">Skip</string>
|
||||
|
||||
<!-- Strings for throttling notification -->
|
||||
<!-- Shown when the user is in danger of being throttled -->
|
||||
<string name="throttle_warning_notification_title">High mobile data use</string>
|
||||
<string name="throttle_warning_notification_message">Touch to learn more about mobile data use.</string>
|
||||
|
||||
<!-- Strings for throttling notification -->
|
||||
<!-- Shown when the users bandwidth is reduced because of excessive data use -->
|
||||
<string name="throttled_notification_title">Mobile data limit exceeded</string>
|
||||
<string name="throttled_notification_message">Touch to learn more about mobile data use.</string>
|
||||
|
||||
<!-- Displayed on the Find dialog when there are no matches [CHAR LIMIT=NONE]-->
|
||||
<string name="no_matches">No matches</string>
|
||||
|
||||
@@ -4198,22 +4188,22 @@
|
||||
<string name="data_usage_warning_body">Touch to view usage and settings.</string>
|
||||
|
||||
<!-- Notification title when 2G-3G data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_3g_limit_title">2G-3G data disabled</string>
|
||||
<string name="data_usage_3g_limit_title">2G-3G data is off</string>
|
||||
<!-- Notification title when 4G data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_4g_limit_title">4G data disabled</string>
|
||||
<string name="data_usage_4g_limit_title">4G data is off</string>
|
||||
<!-- Notification title when mobile data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_mobile_limit_title">Mobile data disabled</string>
|
||||
<string name="data_usage_mobile_limit_title">Cellular data is off</string>
|
||||
<!-- Notification title when Wi-Fi data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_wifi_limit_title">Wi-Fi data disabled</string>
|
||||
<string name="data_usage_wifi_limit_title">Wi-Fi data is off</string>
|
||||
<!-- Notification body when data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_limit_body">Touch to enable.</string>
|
||||
<string name="data_usage_limit_body">Limit reached</string>
|
||||
|
||||
<!-- Notification title when 2G-3G data usage has exceeded limit threshold. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_3g_limit_snoozed_title">2G-3G data limit exceeded</string>
|
||||
<!-- Notification title when 4G data usage has exceeded limit threshold. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_4g_limit_snoozed_title">4G data limit exceeded</string>
|
||||
<!-- Notification title when mobile data usage has exceeded limit threshold. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_mobile_limit_snoozed_title">Mobile data limit exceeded</string>
|
||||
<string name="data_usage_mobile_limit_snoozed_title">Cellular data limit exceeded</string>
|
||||
<!-- Notification title when Wi-Fi data usage has exceeded limit threshold. [CHAR LIMIT=32] -->
|
||||
<string name="data_usage_wifi_limit_snoozed_title">Wi-Fi data limit exceeded</string>
|
||||
<!-- Notification body when data usage has exceeded limit threshold. [CHAR LIMIT=32] -->
|
||||
|
||||
@@ -1502,7 +1502,7 @@
|
||||
<java-symbol type="drawable" name="ic_menu_refresh" />
|
||||
<java-symbol type="drawable" name="ic_settings" />
|
||||
<java-symbol type="drawable" name="stat_notify_car_mode" />
|
||||
<java-symbol type="drawable" name="stat_notify_disabled" />
|
||||
<java-symbol type="drawable" name="stat_notify_disabled_data" />
|
||||
<java-symbol type="drawable" name="stat_notify_disk_full" />
|
||||
<java-symbol type="drawable" name="stat_sys_adb" />
|
||||
<java-symbol type="drawable" name="stat_sys_battery" />
|
||||
|
||||
@@ -416,17 +416,17 @@
|
||||
<string name="accessibility_quick_settings_less_time">Less time</string>
|
||||
|
||||
<!-- Title of dialog shown when 2G-3G data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
|
||||
<string name="data_usage_disabled_dialog_3g_title">2G-3G data disabled</string>
|
||||
<string name="data_usage_disabled_dialog_3g_title">2G-3G data is off</string>
|
||||
<!-- Title of dialog shown when 4G data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
|
||||
<string name="data_usage_disabled_dialog_4g_title">4G data disabled</string>
|
||||
<string name="data_usage_disabled_dialog_4g_title">4G data is off</string>
|
||||
<!-- Title of dialog shown when mobile data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
|
||||
<string name="data_usage_disabled_dialog_mobile_title">Mobile data disabled</string>
|
||||
<string name="data_usage_disabled_dialog_mobile_title">Cellular data is off</string>
|
||||
<!-- Title of dialog shown when data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
|
||||
<string name="data_usage_disabled_dialog_title">Data disabled</string>
|
||||
<string name="data_usage_disabled_dialog_title">Data is off</string>
|
||||
<!-- Body of dialog shown when data usage has exceeded limit and has been disabled. [CHAR LIMIT=NONE] -->
|
||||
<string name="data_usage_disabled_dialog">You\'ve reached the specified data usage limit.\n\nIf you re-enable data, you may be charged by the operator.</string>
|
||||
<string name="data_usage_disabled_dialog">Your device turned off data because it reached the limit you set.\n\nTurning it back on may lead to charges from your carrier.</string>
|
||||
<!-- Dialog button indicating that data connection should be re-enabled. [CHAR LIMIT=28] -->
|
||||
<string name="data_usage_disabled_dialog_enable">Re-enable data</string>
|
||||
<string name="data_usage_disabled_dialog_enable">Turn on data</string>
|
||||
|
||||
<!-- Text to display underneath the graphical signal strength meter when
|
||||
no connection is available. [CHAR LIMIT=20] -->
|
||||
|
||||
@@ -815,6 +815,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
final CharSequence body = res.getText(R.string.data_usage_limit_body);
|
||||
|
||||
final CharSequence title;
|
||||
int icon = R.drawable.stat_notify_disabled_data;
|
||||
switch (policy.template.getMatchRule()) {
|
||||
case MATCH_MOBILE_3G_LOWER:
|
||||
title = res.getText(R.string.data_usage_3g_limit_title);
|
||||
@@ -827,6 +828,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
break;
|
||||
case MATCH_WIFI:
|
||||
title = res.getText(R.string.data_usage_wifi_limit_title);
|
||||
icon = R.drawable.stat_notify_error;
|
||||
break;
|
||||
default:
|
||||
title = null;
|
||||
@@ -834,7 +836,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
}
|
||||
|
||||
builder.setOngoing(true);
|
||||
builder.setSmallIcon(R.drawable.stat_notify_disabled);
|
||||
builder.setSmallIcon(icon);
|
||||
builder.setTicker(title);
|
||||
builder.setContentTitle(title);
|
||||
builder.setContentText(body);
|
||||
|
||||
Reference in New Issue
Block a user