Skip to content

Commit 6f13746

Browse files
jsharkeyAndroid (Google) Code Review
authored andcommitted
Merge "Change data usage warning notification wording."
2 parents 428dd26 + 8ca953d commit 6f13746

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
@@ -3221,7 +3221,7 @@
32213221
<!-- Notification title when data usage has exceeded warning threshold. [CHAR LIMIT=32] -->
32223222
<string name="data_usage_warning_title">Data usage warning</string>
32233223
<!-- Notification body when data usage has exceeded warning threshold. [CHAR LIMIT=32] -->
3224-
<string name="data_usage_warning_body">usage exceeds <xliff:g id="size" example="3.8GB">%s</xliff:g></string>
3224+
<string name="data_usage_warning_body">Touch to view usage and settings</string>
32253225

32263226
<!-- Notification title when 2G-3G data usage has exceeded limit threshold, and has been disabled. [CHAR LIMIT=32] -->
32273227
<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)