Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3b20d3a authored by mxyyiyi's avatar mxyyiyi
Browse files

Also clear the foreground service usage time for BatteryDiffEntry should hide...

Also clear the foreground service usage time for BatteryDiffEntry should hide background usage time.

- Usage time in background is the sum{bg + fgs} usage time

Bug: 371919020
Fix: 371919020
Test: atest DataProcessorTest
Flag: EXEMPT for simple fix
Change-Id: I058d8511eac7510e2df6d9ac1713824cd8dbf3ba
parent f4a3bd14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ public class BatteryDiffData {
            }
            if (packageName != null && hideBackgroundUsageTimeSet.contains(packageName)) {
                entry.mBackgroundUsageTimeInMs = 0;
                entry.mForegroundServiceUsageTimeInMs = 0;
            }
        }
    }
+59 −0

File changed.

Preview size limit exceeded, changes collapsed.