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

Commit 622798d4 authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Don't turn off signal strength update in power save mode.

Bug: 69644626
Test: manual
Change-Id: Ic3b5eee9bf841b51d905bc9f60587032b4cd958c
parent 6d2fab2e
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -201,18 +201,13 @@ public class DeviceStateMonitor extends Handler {
     * @return True if low data is expected
     */
    private boolean isLowDataExpected() {
        return mIsPowerSaveOn || (!mIsCharging && !mIsTetheringOn && !mIsScreenOn);
        return !mIsCharging && !mIsTetheringOn && !mIsScreenOn;
    }

    /**
     * @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) {
            return true;
        }

        // We should not turn off signal strength update if one of the following condition is true.
        // 1. The device is charging.
        // 2. When the screen is on.
@@ -234,11 +229,6 @@ public class DeviceStateMonitor extends Handler {
     * trigger the network update unsolicited response.
     */
    private boolean shouldTurnOffFullNetworkUpdate() {
        // We don't want to get full network update when the device is in power save mode.
        if (mIsPowerSaveOn) {
            return true;
        }

        // We should not turn off full network update if one of the following condition is true.
        // 1. The device is charging.
        // 2. When the screen is on.
@@ -258,11 +248,6 @@ public class DeviceStateMonitor extends Handler {
     * @return True if data dormancy status update should be turned off.
     */
    private boolean shouldTurnOffDormancyUpdate() {
        // We don't want to get dormancy status update when the device is in power save mode.
        if (mIsPowerSaveOn) {
            return true;
        }

        // We should not turn off data dormancy update if one of the following condition is true.
        // 1. The device is charging.
        // 2. When the screen is on.