mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Re-enable update check job for Android M
This commit is contained in:
		@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user