Skip to content

Commit

Permalink
Upgrade to Android 34
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jul 31, 2024
1 parent 86f3077 commit a55e66a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ dependencies {
}

android {
compileSdk = 33
compileSdk = 34

testBuildType = obtainTestBuildType()

Expand All @@ -192,7 +192,7 @@ android {
applicationId = "openfoodfacts.github.scrachx.openfood"

minSdk = 21
targetSdk = 33
targetSdk = 34

versionCode = 582
versionName = "3.9.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SentryAnalytics @Inject constructor(

private val enabledFromPrefs get() = sharedPreferences.getBoolean(prefKey, false)

private val listener: (SharedPreferences, String) -> Unit = { _, key ->
private val listener: (SharedPreferences, String?) -> Unit = { _, key ->
if (key == prefKey) refresh()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PreferencesListener @Inject constructor(
) : SharedPreferences.OnSharedPreferenceChangeListener {


override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) {
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String?) {
when (key) {
context.getString(R.string.pref_enable_mobile_data_key) -> {
ProductUploaderWorker.scheduleProductUpload(context, sharedPreferences)
Expand Down

0 comments on commit a55e66a

Please sign in to comment.