From 9539eeb53d6c72ac93c6180499e4852b9f17b830 Mon Sep 17 00:00:00 2001 From: DonnKey Date: Mon, 20 Dec 2021 10:32:24 -0800 Subject: [PATCH] Add Headphone controls support. --- CHANGELOG.md | 8 +- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 8 ++ .../donnKey/aesopPlayer/ui/MainActivity.java | 134 +++++++++++++++++- .../aesopPlayer/ui/MediaKeyReceiver.java | 68 +++++++++ .../aesopPlayer/ui/UiControllerMain.java | 73 ++++++---- app/src/main/res/values-de/strings.xml | 6 +- app/src/main/res/values-pl/strings.xml | 3 +- app/src/main/res/values/strings.xml | 6 +- 9 files changed, 268 insertions(+), 40 deletions(-) create mode 100644 app/src/main/java/com/donnKey/aesopPlayer/ui/MediaKeyReceiver.java diff --git a/CHANGELOG.md b/CHANGELOG.md index f0a16f2e..9cc2918b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -183,4 +183,10 @@ Add German translations, thanks to @renarena. Update to conform to API30 constraints. The main AudioBooks directory is read-only to Aesop (but not to the file manager or via a PC); Aesop writes into the Scoped Storage directory ...Android/data/github.io.donnKey.aesopPlayer/files instead. -It will play books found in the main AudioBooks directory, but can't change them. \ No newline at end of file +It will play books found in the main AudioBooks directory, but can't change them. + +## Version 1.2.4 +Support headphone buttons: Enable start/stop and volume up/down headphone buttons. +Intentionally ignore fast-forward/rewind/next and record buttons as inconsistent with +the "simple and fumble-proof" goals of Aesop. +Unlike most apps, the buttons wake up the UI. \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 2a1311d7..0cc6ed70 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -70,7 +70,7 @@ android { multiDexEnabled true minSdkVersion 17 targetSdkVersion 30 - versionCode 14 + versionCode 15 versionName getVersionName() } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 924b26c1..f5f0e50d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -151,6 +151,14 @@ + + + + + + + + \n - Remote control of books via eMail/shared file.\n - Bugfixes\n - German Translation + German Translation\n + Headphone button support diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index a59df1c0..5d12dfc1 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -338,9 +338,8 @@ \n - Zdalne sterowanie książkami przez e-mail/udostępniony plik.\n Niemieckie tłumaczenie\n - Bugfixes" + Obsługa przycisku słuchawek \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 45d6dee7..e971d4f1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -358,9 +358,9 @@ // Change this with each release as a newline-separated list + \n - Remote control of books via eMail/shared file.\n - Bugfixes\n - German Translation + German Translation\n + Headphone button support