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

Commit eab75df8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't use debug data in app list controller"

parents f94f6d41 88c86f73
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ import java.util.List;
 */
public class BatteryAppListPreferenceController extends AbstractPreferenceController
        implements PreferenceControllerMixin, LifecycleObserver, OnPause, OnDestroy {
    private static final boolean USE_FAKE_DATA = true;
    @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 MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP = 10;
    private static final int STATS_TYPE = BatteryStats.STATS_SINCE_CHARGED;
+5 −0
Original line number Diff line number Diff line
@@ -220,4 +220,9 @@ public class BatteryAppListPreferenceControllerTest {

        assertThat(mPreferenceController.isAvailable()).isFalse();
    }

    @Test
    public void testNeverUseFakeData() {
        assertThat(BatteryAppListPreferenceController.USE_FAKE_DATA).isFalse();
    }
}