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

This commit is contained in:
Wink Saville
2013-03-17 21:27:19 +00:00
committed by Android (Google) Code Review

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