mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Force default browser for tracker logins
To avoid potentially opening up third party apps, which aren't useful for handling OAuth login flows.
This commit is contained in:
parent
85be4c492d
commit
0ed0d903cc
@ -53,10 +53,10 @@ class SettingsTrackingController :
|
|||||||
titleRes = R.string.services
|
titleRes = R.string.services
|
||||||
|
|
||||||
trackPreference(trackManager.myAnimeList) {
|
trackPreference(trackManager.myAnimeList) {
|
||||||
activity?.openInBrowser(MyAnimeListApi.authUrl())
|
activity?.openInBrowser(MyAnimeListApi.authUrl(), forceDefaultBrowser = true)
|
||||||
}
|
}
|
||||||
trackPreference(trackManager.aniList) {
|
trackPreference(trackManager.aniList) {
|
||||||
activity?.openInBrowser(AnilistApi.authUrl())
|
activity?.openInBrowser(AnilistApi.authUrl(), forceDefaultBrowser = true)
|
||||||
}
|
}
|
||||||
trackPreference(trackManager.kitsu) {
|
trackPreference(trackManager.kitsu) {
|
||||||
val dialog = TrackLoginDialog(trackManager.kitsu, R.string.email)
|
val dialog = TrackLoginDialog(trackManager.kitsu, R.string.email)
|
||||||
@ -64,10 +64,10 @@ class SettingsTrackingController :
|
|||||||
dialog.showDialog(router)
|
dialog.showDialog(router)
|
||||||
}
|
}
|
||||||
trackPreference(trackManager.shikimori) {
|
trackPreference(trackManager.shikimori) {
|
||||||
activity?.openInBrowser(ShikimoriApi.authUrl())
|
activity?.openInBrowser(ShikimoriApi.authUrl(), forceDefaultBrowser = true)
|
||||||
}
|
}
|
||||||
trackPreference(trackManager.bangumi) {
|
trackPreference(trackManager.bangumi) {
|
||||||
activity?.openInBrowser(BangumiApi.authUrl())
|
activity?.openInBrowser(BangumiApi.authUrl(), forceDefaultBrowser = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
infoPreference(R.string.tracking_info)
|
infoPreference(R.string.tracking_info)
|
||||||
|
Loading…
Reference in New Issue
Block a user