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

Commit cbb9298b authored by Mohamad Ayyash's avatar Mohamad Ayyash Committed by Android (Google) Code Review
Browse files

Merge "ril: Fix update screen events." into lmp-dev

parents f17dec63 b9597d03
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2216,7 +2216,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
            if (oldState != Display.STATE_ON
                    && mDefaultDisplayState == Display.STATE_ON) {
                sendScreenState(true);
            } else if (oldState == Display.STATE_ON
            } else if ((oldState == Display.STATE_ON || oldState == Display.STATE_UNKNOWN)
                        && mDefaultDisplayState != Display.STATE_ON) {
                sendScreenState(false);
            }
@@ -2239,9 +2239,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
    onRadioAvailable() {
        // In case screen state was lost (due to process crash),
        // this ensures that the RIL knows the correct screen state.

        PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
        sendScreenState(pm.isScreenOn());
        updateScreenState();
   }

    private RadioState getRadioStateFromInt(int stateInt) {