Skip to content

Commit

Permalink
add util method
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Kumar committed Dec 29, 2017
1 parent 36f9607 commit 209bb52
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ private Utils() {
throw new UnsupportedOperationException("You can't instantiate me...");
}

public static void init(final Application app) {
Utils.sApplication = app;
app.registerActivityLifecycleCallbacks(mCallbacks);
}
/**
* Application
*
Expand Down

0 comments on commit 209bb52

Please sign in to comment.