Fix new version check still occassionally started in background
This commit is contained in:
parent
5fcc3b4dab
commit
28c72e7f63
2 changed files with 23 additions and 5 deletions
|
|
@ -65,6 +65,7 @@ public class App extends MultiDexApplication {
|
|||
public static final String PACKAGE_NAME = BuildConfig.APPLICATION_ID;
|
||||
private static final String TAG = App.class.toString();
|
||||
private static App app;
|
||||
private static boolean wasAppInForeground = false;
|
||||
|
||||
@NonNull
|
||||
public static App getApp() {
|
||||
|
|
@ -254,4 +255,12 @@ public class App extends MultiDexApplication {
|
|||
protected boolean isDisposedRxExceptionsReported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean wasAppInForeground() {
|
||||
return wasAppInForeground;
|
||||
}
|
||||
|
||||
public static void setWasAppInForeground(final boolean wasAppInForeground) {
|
||||
App.wasAppInForeground = wasAppInForeground;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue