Guest User

Untitled

a guest
Feb 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static AuthStateManager getInstance(final Context context) {
  2. if (instance == null) {
  3. instance = new AuthStateManager(context);
  4. }
  5. return instance;
  6. }
  7.  
  8. public static AuthStateManager getInstance() {
  9. if (instance == null) {
  10. throw new IllegalStateException("Context has not previously been provided");
  11. }
  12. return instance;
  13. }
Add Comment
Please, Sign In to add comment