From 74199c862485cc698a6bc221d513b8fa78b7469e Mon Sep 17 00:00:00 2001 From: John Zhen Mo Date: Mon, 2 Apr 2018 22:11:53 -0700 Subject: [PATCH] -Designated background player as default media button receiver. -Fixed media button intent causing illegal state exception when sent from external apps. --- app/src/main/AndroidManifest.xml | 6 +++++- .../newpipe/player/BackgroundPlayer.java | 6 +++++- .../player/helper/MediaSessionManager.java | 18 ++++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7447c81ed..1e55270be 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,7 +42,11 @@ + android:exported="false"> + + + +