Simplification

This commit is contained in:
M66B
2023-12-12 18:21:23 +01:00
parent 8482338f2b
commit 125a47efd8
13 changed files with 27 additions and 26 deletions

View File

@@ -186,7 +186,7 @@ public class CloudSync {
private static Long updateSyncdata(Context context) throws IOException, JSONException {
DB db = DB.getInstance(context);
File dir = Helper.ensureExists(new File(context.getFilesDir(), "syncdata"));
File dir = Helper.ensureExists(context.getFilesDir(), "syncdata");
Long last = null;
@@ -352,7 +352,7 @@ public class CloudSync {
private static void receiveRemoteData(Context context, String user, String password, long lrevision, long rrevision, JSONObject jstatus)
throws JSONException, GeneralSecurityException, IOException, InvalidCipherTextException {
DB db = DB.getInstance(context);
File dir = Helper.ensureExists(new File(context.getFilesDir(), "syncdata"));
File dir = Helper.ensureExists(context.getFilesDir(), "syncdata");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean cloud_receive = prefs.getBoolean("cloud_receive", false);