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

Commit 653f4273 authored by Hasib Prince's avatar Hasib Prince
Browse files

fixed: ignore error dialog for 401

parent d9a224ff
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ class GPlayHttpClient @Inject constructor(
        private const val HTTP_TIMEOUT_IN_SECOND = 10L
        private const val SEARCH = "search"
        private const val SEARCH_SUGGEST = "searchSuggest"
        private const val STATUS_CODE_OK = 200
        private const val STATUS_CODE_UNAUTHORIZED = 401
        private const val STATUS_CODE_TOO_MANY_REQUESTS = 429
        const val STATUS_CODE_TIMEOUT = 408
@@ -206,7 +207,7 @@ class GPlayHttpClient @Inject constructor(
                }
            }

            if (code != 200) {
            if (code !in listOf(STATUS_CODE_OK, STATUS_CODE_UNAUTHORIZED)) {
                throw GplayHttpRequestException(code, response.message)
            }