diff --git a/core/res/res/drawable-hdpi/stat_notify_disabled.png b/core/res/res/drawable-hdpi/stat_notify_disabled.png deleted file mode 100644 index c5e591797c639..0000000000000 Binary files a/core/res/res/drawable-hdpi/stat_notify_disabled.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/stat_notify_disabled.png b/core/res/res/drawable-mdpi/stat_notify_disabled.png deleted file mode 100644 index c03277c194a2c..0000000000000 Binary files a/core/res/res/drawable-mdpi/stat_notify_disabled.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/stat_notify_disabled.png b/core/res/res/drawable-xhdpi/stat_notify_disabled.png deleted file mode 100644 index a99f1f4e5defe..0000000000000 Binary files a/core/res/res/drawable-xhdpi/stat_notify_disabled.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/stat_notify_disabled.png b/core/res/res/drawable-xxhdpi/stat_notify_disabled.png deleted file mode 100644 index 06d7677b02f30..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/stat_notify_disabled.png and /dev/null differ diff --git a/core/res/res/drawable/stat_notify_disabled_data.xml b/core/res/res/drawable/stat_notify_disabled_data.xml new file mode 100644 index 0000000000000..d287a75b27f84 --- /dev/null +++ b/core/res/res/drawable/stat_notify_disabled_data.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 0285f54c31673..24926893df225 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -3979,16 +3979,6 @@ Skip - - - High mobile data use - Touch to learn more about mobile data use. - - - - Mobile data limit exceeded - Touch to learn more about mobile data use. - No matches @@ -4198,22 +4188,22 @@ Touch to view usage and settings. - 2G-3G data disabled + 2G-3G data is off - 4G data disabled + 4G data is off - Mobile data disabled + Cellular data is off - Wi-Fi data disabled + Wi-Fi data is off - Touch to enable. + Limit reached 2G-3G data limit exceeded 4G data limit exceeded - Mobile data limit exceeded + Cellular data limit exceeded Wi-Fi data limit exceeded diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 46e019458d66d..e19231b037ec1 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1502,7 +1502,7 @@ - + diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 751c8892bf735..28b085353919e 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -416,17 +416,17 @@ Less time - 2G-3G data disabled + 2G-3G data is off - 4G data disabled + 4G data is off - Mobile data disabled + Cellular data is off - Data disabled + Data is off - You\'ve reached the specified data usage limit.\n\nIf you re-enable data, you may be charged by the operator. + Your device turned off data because it reached the limit you set.\n\nTurning it back on may lead to charges from your carrier. - Re-enable data + Turn on data diff --git a/services/core/java/com/android/server/net/NetworkPolicyManagerService.java b/services/core/java/com/android/server/net/NetworkPolicyManagerService.java index f0ec3bbedc96c..0da1fa4ecdcd2 100644 --- a/services/core/java/com/android/server/net/NetworkPolicyManagerService.java +++ b/services/core/java/com/android/server/net/NetworkPolicyManagerService.java @@ -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);