From 0ed0d903ccc63a17a122003333966522e0c7c090 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 26 Mar 2022 16:35:14 -0400 Subject: [PATCH] Force default browser for tracker logins To avoid potentially opening up third party apps, which aren't useful for handling OAuth login flows. --- .../tachiyomi/ui/setting/SettingsTrackingController.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt index bac904f8f4..4966b0582d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt @@ -53,10 +53,10 @@ class SettingsTrackingController : titleRes = R.string.services trackPreference(trackManager.myAnimeList) { - activity?.openInBrowser(MyAnimeListApi.authUrl()) + activity?.openInBrowser(MyAnimeListApi.authUrl(), forceDefaultBrowser = true) } trackPreference(trackManager.aniList) { - activity?.openInBrowser(AnilistApi.authUrl()) + activity?.openInBrowser(AnilistApi.authUrl(), forceDefaultBrowser = true) } trackPreference(trackManager.kitsu) { val dialog = TrackLoginDialog(trackManager.kitsu, R.string.email) @@ -64,10 +64,10 @@ class SettingsTrackingController : dialog.showDialog(router) } trackPreference(trackManager.shikimori) { - activity?.openInBrowser(ShikimoriApi.authUrl()) + activity?.openInBrowser(ShikimoriApi.authUrl(), forceDefaultBrowser = true) } trackPreference(trackManager.bangumi) { - activity?.openInBrowser(BangumiApi.authUrl()) + activity?.openInBrowser(BangumiApi.authUrl(), forceDefaultBrowser = true) } infoPreference(R.string.tracking_info)