Created
December 11, 2019 18:18
-
-
Save user-mw/3d281aed617ff89497c4456022b2a88c to your computer and use it in GitHub Desktop.
Fragment method getViewModelStore() in 2019
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
| public class Fragment { | |
| // Code | |
| public ViewModelStore getViewModelStore() { | |
| if (mFragmentManager == null) { | |
| throw new IllegalStateException(// Exception text); | |
| } | |
| return mFragmentManager.getViewModelStore(this); | |
| } | |
| // Code | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment