Commit a9bf7f7d authored by Jonathan Klee's avatar Jonathan Klee
Browse files

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.
parent 17517a34
Pipeline #186302 passed with stage
in 1 minute and 51 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