From a9bf7f7d2957b5ec24a684668ce5c2e74eaaf466 Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Tue, 17 May 2022 14:27:29 +0200 Subject: [PATCH] Remove annoying toast messages Remove toast messages displayed when there is an error with the remote server and replace them with regular logcat error messages. --- .../foundation/e/notes/persistence/NoteServerSyncHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/foundation/e/notes/persistence/NoteServerSyncHelper.java b/app/src/main/java/foundation/e/notes/persistence/NoteServerSyncHelper.java index e66f91a3f..afc26440e 100644 --- a/app/src/main/java/foundation/e/notes/persistence/NoteServerSyncHelper.java +++ b/app/src/main/java/foundation/e/notes/persistence/NoteServerSyncHelper.java @@ -16,7 +16,6 @@ import android.os.IBinder; import android.os.RemoteException; import android.preference.PreferenceManager; import android.util.Log; -import android.widget.Toast; import org.json.JSONException; @@ -471,9 +470,9 @@ public class NoteServerSyncHelper { protected void onPostExecute(NotesClientUtil.LoginStatus status) { super.onPostExecute(status); if (status != NotesClientUtil.LoginStatus.OK) { - Toast.makeText(appContext, appContext.getString(foundation.e.notes.R.string.error_sync, appContext.getString(status.str)), Toast.LENGTH_LONG).show(); + Log.e(getClass().getSimpleName(), appContext.getString(foundation.e.notes.R.string.error_sync, appContext.getString(status.str))); for (Throwable e : exceptions) { - Toast.makeText(appContext, e.getClass().getName() + ": " + e.getMessage(), Toast.LENGTH_LONG).show(); + Log.e(getClass().getSimpleName(), e.getClass().getName() + ": " + e.getMessage()); } } syncActive = false; -- GitLab