Merge "Hide running time information for "Android System" entry" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fc6cb73d29
@@ -424,6 +424,9 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
|
||||
|
||||
@VisibleForTesting
|
||||
void setUsageSummary(Preference preference, BatteryEntry entry) {
|
||||
if (entry.getUid() == Process.SYSTEM_UID) {
|
||||
return;
|
||||
}
|
||||
// Only show summary when usage time is longer than one minute
|
||||
final long usageTimeMs = entry.getTimeInForegroundMs();
|
||||
if (shouldShowSummary(entry) && usageTimeMs >= DateUtils.MINUTE_IN_MILLIS) {
|
||||
|
Reference in New Issue
Block a user