Progress on fixing persistance disk sync

This commit is contained in:
Mario Danic 2017-02-07 00:13:24 +01:00 committed by AndyScherzinger
parent 2be9cec609
commit 54545a9337
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -135,6 +135,7 @@ public class MainApp extends Application {
@Override
public void onActivityPaused(Activity activity) {
Log_OC.d(activity.getClass().getSimpleName(), "onPause() ending");
MainApp.getSyncedFolderObserverService().syncToDisk(false);
}
@Override
@ -151,7 +152,6 @@ public class MainApp extends Application {
@Override
public void onActivityDestroyed(Activity activity) {
Log_OC.d(activity.getClass().getSimpleName(), "onDestroy() ending" );
MainApp.getSyncedFolderObserverService().syncToDisk(false);
}
});
}