Created
October 6, 2016 06:43
-
-
Save bouhady/a77ad505fae1b5d9881c120805a6aa54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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