mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-13 12:33:42 +02:00
Cloudsync: feedback
This commit is contained in:
@@ -1913,6 +1913,9 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
prefs.edit().putBoolean("cloud_activated", true).apply();
|
||||
String command = args.getString("command");
|
||||
if ("sync".equals(command))
|
||||
ToastEx.makeText(getContext(), R.string.title_completed, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1933,7 +1936,8 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
||||
builder.setMessage(message);
|
||||
builder.show();
|
||||
} else
|
||||
Log.unexpectedError(getParentFragmentManager(), ex);
|
||||
Log.unexpectedError(getParentFragmentManager(), ex, !("sync".equals(command)));
|
||||
// java.io.IOException: Error 500: Internal Server Error {"debug":false,"error":"The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API."}
|
||||
}
|
||||
}.execute(FragmentOptionsBackup.this, args, "cloud");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user