commit | 1961f6ac3ea70727200ed1bcd3de895dd04eef2e | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Nov 10 02:37:04 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 10 02:37:04 2021 +0000 |
tree | bec10e51f292e5f78f18e2943d9f74f24f6d9a14 | |
parent | 6c43335181de3e92251767ef36c1222b5aa27cc8 [diff] | |
parent | 0f6c95d4fd6200c8849df623cc806e6f3ac397ec [diff] |
Merge "Fix "battery saver" not in the top seaching result for indexing" into sc-v2-dev am: 5afb04e1b8 am: 0f6c95d4fd Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16220939 Change-Id: If0c770aabefcc0644045ec272a32a1bfae022182
diff --git a/src/com/android/settings/fuelgauge/BatterySaverController.java b/src/com/android/settings/fuelgauge/BatterySaverController.java index 15070c3..c712ab0 100644 --- a/src/com/android/settings/fuelgauge/BatterySaverController.java +++ b/src/com/android/settings/fuelgauge/BatterySaverController.java
@@ -63,7 +63,7 @@ @Override public int getAvailabilityStatus() { - return AVAILABLE_UNSEARCHABLE; + return AVAILABLE; } @Override
diff --git a/tests/robotests/src/com/android/settings/fuelgauge/BatterySaverControllerTest.java b/tests/robotests/src/com/android/settings/fuelgauge/BatterySaverControllerTest.java index 52060a0..ddb9860 100644 --- a/tests/robotests/src/com/android/settings/fuelgauge/BatterySaverControllerTest.java +++ b/tests/robotests/src/com/android/settings/fuelgauge/BatterySaverControllerTest.java
@@ -117,4 +117,10 @@ assertThat(mBatterySaverController.getSummary()).isEqualTo("Off"); } + + @Test + public void getAvailabilityStatus_returnAvailable() { + assertThat(mBatterySaverController.getAvailabilityStatus()) + .isEqualTo(BatterySaverController.AVAILABLE); + } }