Skip to content

Commit

Permalink
Update targetSdk to 34
Browse files Browse the repository at this point in the history
  • Loading branch information
mueller-ma committed Nov 6, 2024
1 parent 153d1d1 commit 362dc6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
defaultConfig {
applicationId "com.github.muellerma.mute_reminder"
minSdk 21
targetSdk 33
targetSdk 34
versionCode 19
versionName "2.12"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.bluetooth.BluetoothDevice
import android.content.*
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.SharedPreferences
import android.database.ContentObserver
import android.media.AudioManager
import android.os.Build
Expand Down Expand Up @@ -161,7 +165,11 @@ class ForegroundService : Service() {
}
}
// Register for DND and bluetooth changes
registerReceiver(muteListener, intentFilter)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
registerReceiver(muteListener, intentFilter, RECEIVER_EXPORTED)
} else {
registerReceiver(muteListener, intentFilter)
}
prefs.sharedPrefs.registerOnSharedPreferenceChangeListener(prefsListener)
handleVolumeChanged()

Expand Down

0 comments on commit 362dc6e

Please sign in to comment.