From f0eacf4218c60f575a72579b4779db162c28b41a Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 28 Apr 2021 08:55:30 -0400 Subject: [PATCH] Re-enable update check job for Android M --- app/src/main/java/eu/kanade/tachiyomi/Migrations.kt | 5 +++++ .../java/eu/kanade/tachiyomi/ui/more/AboutController.kt | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index ff38f5de9..a693d7496 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -156,6 +156,11 @@ object Migrations { } } if (oldVersion < 60) { + // Re-enable update check that was prevously accidentally disabled for M + if (BuildConfig.INCLUDE_UPDATER && Build.VERSION.SDK_INT == Build.VERSION_CODES.M) { + UpdaterJob.setupTask(context) + } + // Migrate Rotation and Viewer values to default values for viewer_flags val prefs = PreferenceManager.getDefaultSharedPreferences(context) val newOrientation = when (prefs.getInt("pref_rotation_type_key", 1)) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt index 50f4bd105..5a762b6d3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt @@ -1,7 +1,6 @@ package eu.kanade.tachiyomi.ui.more import android.app.Dialog -import android.os.Build import android.os.Bundle import androidx.core.os.bundleOf import androidx.preference.PreferenceScreen @@ -143,11 +142,6 @@ class AboutController : SettingsController() { private fun checkVersion() { if (activity == null) return - if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { - activity?.toast(R.string.update_check_eol) - return - } - activity?.toast(R.string.update_check_look_for_updates) launchNow {