Created
July 18, 2017 09:16
-
-
Save andremion/6ada5def40cc1700aa166affb4acfe21 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
@Override | |
public void finishAfterTransition() { | |
setResult(); | |
super.finishAfterTransition(); | |
} | |
private void setResult() { | |
int position = mViewPager.getCurrentItem(); | |
Intent data = new Intent(); | |
data.putExtra(EXTRA_POSITION, position); | |
setResult(RESULT_OK, data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment