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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user