Add forced MAL logout for next release migration

This commit is contained in:
arkon 2020-12-18 23:20:42 -05:00
parent 0affc0d58b
commit 450bef278b

View File

@ -116,8 +116,11 @@ object Migrations {
putInt(PreferenceKeys.filterCompleted, convertBooleanPrefToTriState("pref_filter_completed_key")) putInt(PreferenceKeys.filterCompleted, convertBooleanPrefToTriState("pref_filter_completed_key"))
remove("pref_filter_completed_key") remove("pref_filter_completed_key")
} }
}
if (oldVersion < 53) {
// Force MAL log out due to login flow change // Force MAL log out due to login flow change
// v52: switched from scraping to WebView
// v53: switched from WebView to OAuth
val trackManager = Injekt.get<TrackManager>() val trackManager = Injekt.get<TrackManager>()
if (trackManager.myAnimeList.isLogged) { if (trackManager.myAnimeList.isLogged) {
trackManager.myAnimeList.logout() trackManager.myAnimeList.logout()