mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Remove app update check on Android 5.x
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
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
|
||||
@@ -142,6 +143,11 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user