From bfa9027dc49d7758722bf5a7c819dadb3a5fc13d Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Wed, 11 Dec 2024 20:56:42 +0100 Subject: [PATCH] add output switcher button to player screen on Android --- android/app/build.gradle | 1 + android/app/src/main/AndroidManifest.xml | 7 ++- .../com/unicornsonlsd/finamp/MainActivity.kt | 52 ++++++++++++++++++- lib/main.dart | 5 +- lib/screens/player_screen.dart | 13 +++++ .../music_player_background_task.dart | 46 ++++++++++++++++ 6 files changed, 120 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 99bf0a8e6..960c5e4bb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -72,4 +72,5 @@ flutter { dependencies { implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'androidx.mediarouter:mediarouter:1.7.0' } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 523e12a14..73af1fbd3 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -22,7 +22,7 @@ android:allowBackup="false" android:fullBackupContent="false" > - +