Clean up cleaning

This commit is contained in:
Mario Danic 2017-02-12 14:25:56 +01:00 committed by AndyScherzinger
parent 050fb0987d
commit d1dc7b090c
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -143,7 +143,11 @@ public class MainApp extends Application {
}
}
mProvider.deleteSyncFolders(mContext, syncedFolderArrayList, ids);
if (ids.size() > 0) {
mProvider.deleteSyncFolders(mContext, syncedFolderArrayList, ids);
} else {
PreferenceManager.getDefaultSharedPreferences(mContext).edit().putBoolean("legacyClean", true).apply();
}
}
Log_OC.d("SyncedFolderObserverService", "Start service SyncedFolderObserverService");