Skip to content

Commit

Permalink
all: ensure compatibility (fixes #3774) (#3807)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Jul 10, 2024
1 parent 41e8059 commit a6f85c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1666
versionName "0.16.66"
versionCode 1667
versionName "0.16.67"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ abstract class BaseRecyclerFragment<LI> : BaseRecyclerParentFragment<Any?>(), On
arguments?.let {
isMyCourseLib = it.getBoolean("isMyCourseLib")
courseLib = it.getString("courseLib")
resources = it.getSerializable("resources", ArrayList::class.java) as? List<RealmMyLibrary>
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
resources = it.getSerializable("resources", ArrayList::class.java) as? List<RealmMyLibrary>
} else {
@Suppress("DEPRECATION")
resources = it.getSerializable("resources") as? List<RealmMyLibrary>
}
}
}

Expand Down

0 comments on commit a6f85c0

Please sign in to comment.