Skip to content

Instantly share code, notes, and snippets.

@antew
Created February 10, 2013 06:20
Show Gist options
  • Save antew/4748614 to your computer and use it in GitHub Desktop.
Save antew/4748614 to your computer and use it in GitHub Desktop.
@Override
public void onClick(DialogInterface dialog, int which) {
switch (which) {
case DialogInterface.BUTTON_POSITIVE:
listener.performLogout();
break;
case DialogInterface.BUTTON_NEGATIVE:
listener.cancelLogout();
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment