Last active
December 7, 2019 09:44
-
-
Save user-mw/dee7d46029002d10a95279de74be849f to your computer and use it in GitHub Desktop.
ViewModelProviders.of() in 2017
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
public class ViewModelProviders { | |
public static ViewModelProvider of(// arguments) { | |
// Code | |
return new ViewModelProvider(ViewModelStores.of(fragment), factory); | |
} | |
public static ViewModelProvider of(// arguments) { | |
// Code | |
return new ViewModelProvider(ViewModelStores.of(activity), factory); | |
} | |
// Code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment