Sync errors: better handle Unauthorized and PermissionDenied errors.

We now open the account settings instead of the debug activity.
pull/152/head
Tom Hacohen 4 years ago
parent 9fd370ff6e
commit 4b6ce9ac5d

@ -129,6 +129,8 @@ class SyncNotification(internal val context: Context, internal val notificationT
val detailsIntent: Intent
if (e is Exceptions.UnauthorizedException) {
detailsIntent = Intent(this, AccountSettingsActivity::class.java)
} else if (e is PermissionDeniedException || e is UnauthorizedException) {
detailsIntent = Intent(this, AccountSettingsActivity::class.java)
} else if (e is Exceptions.UserInactiveException) {
WebViewActivity.openUrl(this, Constants.dashboard)
return

Loading…
Cancel
Save