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

Commit 33c32dd2 authored by Hall Liu's avatar Hall Liu Committed by Android (Google) Code Review
Browse files

Merge "Don't call pre- and post-handlers for state machine initialization"

parents 7814f0f6 74d7d0f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -779,7 +779,7 @@ public class StateMachine {
        @Override
        public final void handleMessage(Message msg) {
            if (!mHasQuit) {
                if (mSm != null) {
                if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) {
                    mSm.onPreHandleMessage(msg);
                }

@@ -807,7 +807,7 @@ public class StateMachine {
                // We need to check if mSm == null here as we could be quitting.
                if (mDbg && mSm != null) mSm.log("handleMessage: X");

                if (mSm != null) {
                if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) {
                    mSm.onPostHandleMessage(msg);
                }
            }