Last active
October 19, 2017 16:52
-
-
Save sonnguyen0310/db7d669c4d75e444904f36298d0fdfe3 to your computer and use it in GitHub Desktop.
Get current child fragment in viewpager
This file contains hidden or 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
if (pageAdapter != null && viewpager != null && pageAdapter.instantiateItem(viewpager, viewpager.getCurrentItem()) instanceof Reloadable) { | |
((Reloadable) pageAdapter.get().instantiateItem(viewpager, viewpager.getCurrentItem())).reload(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment