Use a file suppress deprecation

(cherry picked from commit 1eafc6ebd8c00f727e96ceb59737ae003fce6e5f)
This commit is contained in:
Jobobby04 2022-05-06 20:50:56 -04:00
parent 62e2b301c5
commit b3baaa18d2

View File

@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")
package exh
import android.content.Context
@ -309,7 +311,6 @@ object EXHMigrations {
val oldSortingMode = prefs.getInt(PreferenceKeys.librarySortingMode, 0)
val oldSortingDirection = prefs.getBoolean(PreferenceKeys.librarySortingDirection, true)
@Suppress("DEPRECATION")
val newSortingMode = when (oldSortingMode) {
LibrarySort.ALPHA -> SortModeSetting.ALPHABETICAL
LibrarySort.LAST_READ -> SortModeSetting.LAST_READ