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

Commit 20a55dfa authored by Alex Lin's avatar Alex Lin
Browse files

Start the state machine in EuiccConnector eariler

Start the state machine inside EuiccConnector before registering for
incoming events
Bug: 152094154
Test: built and test the basic functions in LPA

Change-Id: Ic02a3affaaae4394a2deb8294eeb355fc28a6835
parent a7846f26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -402,11 +402,11 @@ public class EuiccConnector extends StateMachine implements ServiceConnection {
        mSelectedComponent = findBestComponent();
        setInitialState(mSelectedComponent != null ? mAvailableState : mUnavailableState);

        start();

        mPackageMonitor.register(mContext, null /* thread */, null /* user */);
        mContext.registerReceiver(
                mUserUnlockedReceiver, new IntentFilter(Intent.ACTION_USER_UNLOCKED));

        start();
    }

    @Override