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:
Wink Saville
2013-03-17 21:30:58 +00:00
committed by Android Git Automerger

View File

@@ -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