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
Pipeline #186306 passed with stage
in 1 minute and 37 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment