Fix new version check still occassionally started in background

This commit is contained in:
TobiGr 2021-10-17 12:54:56 +02:00
parent 5fcc3b4dab
commit 28c72e7f63
2 changed files with 23 additions and 5 deletions

View file

@ -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;
}
}