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

Commit 89c64714 authored by ykhung's avatar ykhung Committed by YK Hung
Browse files

Add includeProcessStateData() to include process data

Add includeProcessStateData() into the `BatteryUsageStatsQuery` build as  described in the b/274562089

Fix: 274562089
Test: presubmit & manual
Change-Id: I7be7424a6d2037c851134488033ec98667343a05
parent 3bc28059
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ public class BatteryUsageStatsLoader extends AsyncLoaderCompat<BatteryUsageStats
            builder.includeBatteryHistory();
        }
        try {
            return mBatteryStatsManager.getBatteryUsageStats(builder.build());
            return mBatteryStatsManager.getBatteryUsageStats(
                    builder.includeProcessStateData().build());
        } catch (RuntimeException e) {
            Log.e(TAG, "loadInBackground() for getBatteryUsageStats()", e);
            // Use default BatteryUsageStats.