mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 05:38:55 +00:00
Merge pull request #1921 from Hafizzle/Fiz/push-notif-crash-fix
Check for IOException (No google services)
This commit is contained in:
commit
46752a1550
1 changed files with 5 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ import com.habitrpg.android.habitica.helpers.AmplitudeManager
|
|||
import com.habitrpg.android.habitica.helpers.launchCatching
|
||||
import com.habitrpg.android.habitica.models.user.User
|
||||
import kotlinx.coroutines.MainScope
|
||||
import java.io.IOException
|
||||
|
||||
class PushNotificationManager(
|
||||
var apiClient: ApiClient,
|
||||
|
|
@ -56,8 +57,10 @@ class PushNotificationManager(
|
|||
try {
|
||||
refreshedToken = it.result
|
||||
addRefreshToken()
|
||||
} catch (_: Exception) {
|
||||
// catchy catch
|
||||
} catch (_: IOException) {
|
||||
// catchy catch-catch
|
||||
} catch (_: Exception){
|
||||
// catchy catch-catch-cat, I'm out of breath.
|
||||
}
|
||||
}
|
||||
} catch (_: Exception) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue