mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Simplification
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user