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

Commit 2474814f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

LGEStarRIL: Fix state trackers

Send a screen_on event after powering up the radio to initialize
the state trackers. Without this, the registration events are being
missed.

Change-Id: Idcb98ada4b371c9e2b50f735961ddf4f0328f6c0
parent b84d4ec6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -178,6 +178,15 @@ public class LGEStarRIL extends RIL implements CommandsInterface {
                    + requestToString(rrSc.mRequest));
            send(rrSc);

            /* Use this to initialize network state trackers */
            RILRequest rrSSt = RILRequest.obtain(
                    RIL_REQUEST_SCREEN_STATE, null);
            rrSSt.mp.writeInt(1);
            rrSSt.mp.writeInt(1);
            if (RILJ_LOGD) riljLog(rrSSt.serialString() + "> "
                    + requestToString(rrSSt.mRequest));
            send(rrSSt);

            mPrepSetupPending = false;

        }