Skip to content

Instantly share code, notes, and snippets.

@bouhady
Created October 6, 2016 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouhady/a77ad505fae1b5d9881c120805a6aa54 to your computer and use it in GitHub Desktop.
Save bouhady/a77ad505fae1b5d9881c120805a6aa54 to your computer and use it in GitHub Desktop.
final Activity activity = this.getActivity();
if (activity != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
activity.finish();
activity.overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment