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

Commit 5d332700 authored by jackqdyulei's avatar jackqdyulei
Browse files

Increase battery app list maximum size to 20

In P, we only show 10 app that used most battery, in some case it may
make battery percentage counting inaccurate. Increase the size to
mitigate this issue.

Bug: 112406521
Test: Build
Change-Id: I5a4ddc90d5f33af5fe66bc1129ae3ed6f8fc3fcd
parent b9b4a688
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
        implements PreferenceControllerMixin, LifecycleObserver, OnPause, OnDestroy {
    @VisibleForTesting
    static final boolean USE_FAKE_DATA = false;
    private static final int MAX_ITEMS_TO_LIST = USE_FAKE_DATA ? 30 : 10;
    private static final int MAX_ITEMS_TO_LIST = USE_FAKE_DATA ? 30 : 20;
    private static final int MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP = 10;
    private static final int STATS_TYPE = BatteryStats.STATS_SINCE_CHARGED;