Re-enable update check job for Android M

This commit is contained in:
arkon
2021-04-28 08:55:30 -04:00
parent 0afe3011bc
commit f0eacf4218
2 changed files with 5 additions and 6 deletions
@@ -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)) {