From 50195c526aee8c1de476c0c2515494ea2b06647d Mon Sep 17 00:00:00 2001 From: rlam20 <52076121+rlam20@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:42:03 -0400 Subject: [PATCH] actions: less warnings is more (fixes #3795) (#3796) Co-authored-by: dogi --- app/build.gradle | 4 ++-- .../java/org/ole/planet/myplanet/ui/team/BaseTeamFragment.kt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f681b3144a..10a26fc456 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1663 - versionName "0.16.63" + versionCode 1664 + versionName "0.16.64" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/team/BaseTeamFragment.kt b/app/src/main/java/org/ole/planet/myplanet/ui/team/BaseTeamFragment.kt index 4d79015290..c9978aaa8e 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/team/BaseTeamFragment.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/team/BaseTeamFragment.kt @@ -2,7 +2,9 @@ package org.ole.planet.myplanet.ui.team import android.content.Context import android.content.SharedPreferences +import android.os.Build import android.os.Bundle +import androidx.annotation.RequiresApi import org.ole.planet.myplanet.base.BaseNewsFragment import org.ole.planet.myplanet.datamanager.DatabaseService import org.ole.planet.myplanet.model.RealmMyTeam @@ -10,6 +12,7 @@ import org.ole.planet.myplanet.model.RealmNews import org.ole.planet.myplanet.model.RealmUserModel import org.ole.planet.myplanet.utilities.Constants.PREFS_NAME +@RequiresApi(Build.VERSION_CODES.O) abstract class BaseTeamFragment : BaseNewsFragment() { lateinit var dbService: DatabaseService var user: RealmUserModel? = null