diff --git a/bridge/src/main/java/com/livefront/bridge/BridgeDelegate.java b/bridge/src/main/java/com/livefront/bridge/BridgeDelegate.java index 3eefbe1..a0396db 100644 --- a/bridge/src/main/java/com/livefront/bridge/BridgeDelegate.java +++ b/bridge/src/main/java/com/livefront/bridge/BridgeDelegate.java @@ -141,7 +141,7 @@ private String getSavedUuid(@NonNull Object target, } private boolean isAppInForeground() { - return mActivityCount > 0; + return mActivityCount > 0 || mIsConfigChange; } /** @@ -150,15 +150,9 @@ private boolean isAppInForeground() { * for this task (and any others currently running in the background) to complete before * proceeding in order to prevent the app from becoming fully "stopped" (and therefore killable * by the OS before the data is saved). - * - * Note that if there is a configuration change taking place, no action will be taken. */ private void queueDiskWritingIfNecessary(@NonNull final String uuid, @NonNull final Bundle bundle) { - if (mIsConfigChange) { - // Don't process the Bundle or write it to disk during a config change - return; - } Runnable runnable = new Runnable() { @Override public void run() {