Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21cee302 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '5456-remove-error-toast-messages' into 'master'

Remove annoying toast messages

See merge request !24
parents 17517a34 a9bf7f7d
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;