Merge "Update the strings for "show all apps"" into oc-dev am: 4e0f69c10c

am: 6870de6772

Change-Id: I184acec76978463b3d62a6eedadd456ee6fa7a89
This commit is contained in:
jackqdyulei
2017-05-24 01:01:41 +00:00
committed by android-build-merger
2 changed files with 9 additions and 6 deletions

View File

@@ -503,8 +503,9 @@ public class PowerUsageSummary extends PowerUsageBase implements
updateLastFullChargePreference(runningTime);
final CharSequence timeSequence = Utils.formatElapsedTime(context, runningTime, false);
mAppListGroup.setTitle(
TextUtils.expandTemplate(getText(R.string.power_usage_list_summary), timeSequence));
final int resId = mShowAllApps ? R.string.power_usage_list_summary_device
: R.string.power_usage_list_summary;
mAppListGroup.setTitle(TextUtils.expandTemplate(getText(resId), timeSequence));
refreshAppListGroup();
}