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

Commit ddab5bc9 authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

By default, turn on signal strength update in power save mode.

Adding a resource overlay which decides whether we should disable
signal strength update in power save mode. And the default value
is false. Which means we keep updating signal strength in power
save mode.

Bug: 72463137
Test: manual
Change-Id: I85466e10745acfdc3b70d8884eb7e9969acedefc
parent 0fd92f71
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -208,8 +208,11 @@ public class DeviceStateMonitor extends Handler {
     * @return True if signal strength update should be turned off.
     */
    private boolean shouldTurnOffSignalStrength() {
        // We don't want to get signal strength update when the device is in power save mode.
        if (mIsPowerSaveOn) {
        // Depending on the configuration, we might not want to get signal strength update
        // when the device is in power save mode.
        if (mIsPowerSaveOn && mPhone.getContext().getResources().getBoolean(
                com.android.internal.R.bool
                    .config_disable_signal_strength_update_in_powersave_mode)) {
            return true;
        }