Skip to content

Commit 8ca953d

Browse files
committed
Change data usage warning notification wording.
Bug: 5308710 Change-Id: Ic807640a031a3edb03897634e638473d5a039ecc
1 parent aab55bf commit 8ca953d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/res/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3218,7 +3218,7 @@
32183218
<!-- Notification title when data usage has exceeded warning threshold. [CHAR LIMIT=32] -->
32193219
<string name="data_usage_warning_title">Data usage warning</string>
32203220
<!-- Notification body when data usage has exceeded warning threshold. [CHAR LIMIT=32] -->
3221-
<string name="data_usage_warning_body">usage exceeds <xliff:g id="size" example="3.8GB">%s</xliff:g></string>
3221+
<string name="data_usage_warning_body">Touch to view usage and settings</string>
32223222

32233223
<!-- Notification title when 2G-3G data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
32243224
<string name="data_usage_3g_limit_title">2G-3G data disabled</string>

services/java/com/android/server/net/NetworkPolicyManagerService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,7 @@ private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes
572572
switch (type) {
573573
case TYPE_WARNING: {
574574
final CharSequence title = res.getText(R.string.data_usage_warning_title);
575-
final CharSequence body = res.getString(R.string.data_usage_warning_body,
576-
Formatter.formatFileSize(mContext, policy.warningBytes));
575+
final CharSequence body = res.getString(R.string.data_usage_warning_body);
577576

578577
builder.setSmallIcon(R.drawable.ic_menu_info_details);
579578
builder.setTicker(title);

0 commit comments

Comments
 (0)