Merge "Update strings in battery settings." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
faa5c2281e
@@ -193,14 +193,7 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
|
||||
}
|
||||
|
||||
mBatteryStatsHelper = statsHelper;
|
||||
final long lastFullChargeTime = mBatteryUtils.calculateLastFullChargeTime(
|
||||
mBatteryStatsHelper, System.currentTimeMillis());
|
||||
final CharSequence timeSequence = StringUtil.formatRelativeTime(mContext,
|
||||
lastFullChargeTime,
|
||||
false);
|
||||
final int resId = showAllApps ? R.string.power_usage_list_summary_device
|
||||
: R.string.power_usage_list_summary;
|
||||
mAppListGroup.setTitle(TextUtils.expandTemplate(mContext.getText(resId), timeSequence));
|
||||
mAppListGroup.setTitle(R.string.power_usage_list_summary);
|
||||
|
||||
final PowerProfile powerProfile = statsHelper.getPowerProfile();
|
||||
final BatteryStats stats = statsHelper.getStats();
|
||||
|
@@ -94,10 +94,7 @@ public class BatteryTipDialogFragment extends InstrumentedDialogFragment impleme
|
||||
|
||||
return new AlertDialog.Builder(context)
|
||||
.setMessage(getString(R.string.battery_tip_dialog_message,
|
||||
highUsageTip.getHighUsageAppList().size(),
|
||||
StringUtil.formatRelativeTime(context,
|
||||
highUsageTip.getLastFullChargeTimeMs(),
|
||||
false /* withSeconds */)))
|
||||
highUsageTip.getHighUsageAppList().size()))
|
||||
.setView(view)
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
.create();
|
||||
|
Reference in New Issue
Block a user