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

Commit b8c5ce29 authored by Wink Saville's avatar Wink Saville Committed by Android (Google) Code Review
Browse files

Merge "Add new StateMachine constructor with name and handler params." into jb-mr2-dev

parents c8a9fdff 24d248ac
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1256,6 +1256,15 @@ public class StateMachine {
        initStateMachine(name, looper);
    }

    /**
     * Constructor creates a StateMachine using the handler.
     *
     * @param name of the state machine
     */
    protected StateMachine(String name, Handler handler) {
        initStateMachine(name, handler.getLooper());
    }

    /**
     * Add a new state to the state machine
     * @param state the state to add