Refactoring

This commit is contained in:
M66B
2023-12-13 07:21:15 +01:00
parent 9f1bab8e19
commit 9569b0e28e
14 changed files with 25 additions and 28 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(context.getFilesDir(), "syncdata");
File dir = Helper.ensureExists(context, "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(context.getFilesDir(), "syncdata");
File dir = Helper.ensureExists(context, "syncdata");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean cloud_receive = prefs.getBoolean("cloud_receive", false);