Skip to content

Instantly share code, notes, and snippets.

@user-mw
Created December 11, 2019 18:18
Show Gist options
  • Select an option

  • Save user-mw/3d281aed617ff89497c4456022b2a88c to your computer and use it in GitHub Desktop.

Select an option

Save user-mw/3d281aed617ff89497c4456022b2a88c to your computer and use it in GitHub Desktop.
Fragment method getViewModelStore() in 2019
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