diff --git a/mastodon/build.gradle b/mastodon/build.gradle
index 902a95a6..0ea75a47 100644
--- a/mastodon/build.gradle
+++ b/mastodon/build.gradle
@@ -8,11 +8,11 @@ android {
generateLocaleConfig = true
}
- compileSdk 33
+ compileSdk 34
defaultConfig {
applicationId "org.joinmastodon.android"
minSdk 23
- targetSdk 33
+ targetSdk 34
versionCode 104
versionName "2.5.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
diff --git a/mastodon/src/main/AndroidManifest.xml b/mastodon/src/main/AndroidManifest.xml
index 122e86a7..f8cefa88 100644
--- a/mastodon/src/main/AndroidManifest.xml
+++ b/mastodon/src/main/AndroidManifest.xml
@@ -4,6 +4,7 @@
+
diff --git a/mastodon/src/main/java/org/joinmastodon/android/AudioPlayerService.java b/mastodon/src/main/java/org/joinmastodon/android/AudioPlayerService.java
index 4a01c13f..de8bc189 100644
--- a/mastodon/src/main/java/org/joinmastodon/android/AudioPlayerService.java
+++ b/mastodon/src/main/java/org/joinmastodon/android/AudioPlayerService.java
@@ -88,8 +88,13 @@ public class AudioPlayerService extends Service{
nm=getSystemService(NotificationManager.class);
// registerReceiver(receiver, new IntentFilter(Intent.ACTION_MEDIA_BUTTON));
registerReceiver(receiver, new IntentFilter(AudioManager.ACTION_AUDIO_BECOMING_NOISY));
- registerReceiver(receiver, new IntentFilter(ACTION_PLAY_PAUSE));
- registerReceiver(receiver, new IntentFilter(ACTION_STOP));
+ if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.TIRAMISU){
+ registerReceiver(receiver, new IntentFilter(ACTION_PLAY_PAUSE), RECEIVER_EXPORTED);
+ registerReceiver(receiver, new IntentFilter(ACTION_STOP), RECEIVER_EXPORTED);
+ }else{
+ registerReceiver(receiver, new IntentFilter(ACTION_PLAY_PAUSE));
+ registerReceiver(receiver, new IntentFilter(ACTION_STOP));
+ }
instance=this;
}