am b8c5ce29: Merge "Add new StateMachine constructor with name and handler params." into jb-mr2-dev
* commit 'b8c5ce29dcc5b9cd3c644da75b383cee761a02b4': Add new StateMachine constructor with name and handler params.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user