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

Commit 8981f538 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '3430-hide-sync-notification' into 'master'

Do not show notification for Google auth error

See merge request !49
parents fcee1f26 fd814e37
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -654,6 +654,13 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
                Logger.log.log(Level.SEVERE, "Not authorized anymore", e)
                message = context.getString(R.string.sync_error_authentication_failed)
                syncResult.stats.numAuthExceptions++
                if (account.type.toLowerCase(Locale.getDefault()).contains("google")) {
                    /* TODO Investigate deeper why this exception sometimes happens
                     * https://gitlab.e.foundation/e/backlog/-/issues/3430
                     */
                    Logger.log.log(Level.WARNING, "Authorization error. Do not notify the user")
                    return
                }
            }
            is HttpException, is DavException -> {
                Logger.log.log(Level.SEVERE, "HTTP/DAV exception", e)