Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
Notes
Commits
21cee302
Commit
21cee302
authored
May 17, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/notes/persistence/NoteServerSyncHelper.java
View file @
21cee302
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment