Skip to content

Instantly share code, notes, and snippets.

@Ansh1234
Created January 10, 2018 11:41
Show Gist options
  • Save Ansh1234/38d2eb36aeba38fb9cb73e417ab50480 to your computer and use it in GitHub Desktop.
Save Ansh1234/38d2eb36aeba38fb9cb73e417ab50480 to your computer and use it in GitHub Desktop.
@Override public void handleMessage(final Message msg) {
switch (msg.what) {
case REQUEST_SUBMIT: {
Action action = (Action) msg.obj;
dispatcher.performSubmit(action);
break;
}
case REQUEST_CANCEL: {
Action action = (Action) msg.obj;
dispatcher.performCancel(action);
break;
}
case TAG_PAUSE: {
Object tag = msg.obj;
dispatcher.performPauseTag(tag);
break;
}
case TAG_RESUME: {
Object tag = msg.obj;
dispatcher.performResumeTag(tag);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment