diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 1be8c1f2c..18b3222a0 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -43,6 +43,12 @@
android:launchMode="singleTask"
android:label="@string/title_activity_background_player"/>
+
+
+
+
+
+
= Build.VERSION_CODES.O;
}
+ public void registerMediaButtonEventReceiver(ComponentName componentName) {
+ if (android.os.Build.VERSION.SDK_INT > 27) {
+ Log.e(TAG, "registerMediaButtonEventReceiver has been deprecated and maybe not supported anymore.");
+ return;
+ }
+ audioManager.registerMediaButtonEventReceiver(componentName);
+ }
+
+ public void unregisterMediaButtonEventReceiver(ComponentName componentName) {
+ if (android.os.Build.VERSION.SDK_INT > 27) {
+ Log.e(TAG, "unregisterMediaButtonEventReceiver has been deprecated and maybe not supported anymore.");
+ return;
+ }
+ audioManager.unregisterMediaButtonEventReceiver(componentName);
+ }
+
/*//////////////////////////////////////////////////////////////////////////
// AudioFocus
//////////////////////////////////////////////////////////////////////////*/