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

Commit cf57b29a authored by Bin Li's avatar Bin Li
Browse files

Send correct screen state when radio available.



Change-Id: I098ffd06916d9d37272ee3c8c57a4d7e21e564c6
Signed-off-by: default avatarBin Li <libin@marvell.com>
parent 135bf68d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2054,9 +2054,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
        // In case screen state was lost (due to process crash),
        // this ensures that the RIL knows the correct screen state.

        // TODO: Should query Power Manager and send the actual
        // screen state.  Just send true for now.
        sendScreenState(true);
        PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
        sendScreenState(pm.isScreenOn());
   }

    private RadioState getRadioStateFromInt(int stateInt) {