mirror of
https://github.com/etesync/android
synced 2024-12-22 22:58:29 +00:00
Sync errors: better handle Unauthorized and PermissionDenied errors.
We now open the account settings instead of the debug activity.
This commit is contained in:
parent
9fd370ff6e
commit
4b6ce9ac5d
@ -129,6 +129,8 @@ class SyncNotification(internal val context: Context, internal val notificationT
|
|||||||
val detailsIntent: Intent
|
val detailsIntent: Intent
|
||||||
if (e is Exceptions.UnauthorizedException) {
|
if (e is Exceptions.UnauthorizedException) {
|
||||||
detailsIntent = Intent(this, AccountSettingsActivity::class.java)
|
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) {
|
} else if (e is Exceptions.UserInactiveException) {
|
||||||
WebViewActivity.openUrl(this, Constants.dashboard)
|
WebViewActivity.openUrl(this, Constants.dashboard)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user