From 450bef278bab5ad17ee7fc1d0650d9ed0f096fda Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 18 Dec 2020 23:20:42 -0500 Subject: [PATCH] Add forced MAL logout for next release migration --- app/src/main/java/eu/kanade/tachiyomi/Migrations.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index d5fbe83a9f..dc71fcb84f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -116,8 +116,11 @@ object Migrations { putInt(PreferenceKeys.filterCompleted, convertBooleanPrefToTriState("pref_filter_completed_key")) remove("pref_filter_completed_key") } - + } + if (oldVersion < 53) { // 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() if (trackManager.myAnimeList.isLogged) { trackManager.myAnimeList.logout()