Control buttons in Android Auto (and probably Android Wear too) are messy. The skip back/forward buttons appears sometimes and the jump forward/back a few seconds don't show at all in minimized modes.
This PR does the following:
Show skip buttons if multiple items are available.
Hide skip buttons when multiple queue items are not available.
Show jump buttons when the app is "minimized" instead of skip buttons.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/365
**Author:** [@vangorra](https://github.com/vangorra)
**Created:** 9/4/2022
**Status:** ✅ Merged
**Merged:** 9/4/2022
**Merged by:** [@advplyr](https://github.com/advplyr)
**Base:** `master` ← **Head:** `vangorra/aa-button-cleanup`
---
### 📝 Commits (2)
- [`453365f`](https://github.com/advplyr/audiobookshelf-app/commit/453365fcd62db309a3dd75590c2ff224a01dc1ab) Fix buttons for Android Auto (and probably wear too).
- [`92f10fd`](https://github.com/advplyr/audiobookshelf-app/commit/92f10fdb5cb61fee34b518163f484b42a3d32d0c) Merge branch 'advplyr:master' into vangorra/aa-button-cleanup
### 📊 Changes
**9 files changed** (+115 additions, -13 deletions)
<details>
<summary>View changed files</summary>
📝 `android/app/src/main/java/com/audiobookshelf/app/data/DeviceClasses.kt` (+1 -1)
📝 `android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt` (+2 -0)
📝 `android/app/src/main/java/com/audiobookshelf/app/player/PlayerConstants.kt` (+2 -0)
📝 `android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt` (+58 -12)
➕ `android/app/src/main/res/drawable-anydpi/skip_next_24.xml` (+15 -0)
➕ `android/app/src/main/res/drawable-anydpi/skip_previous_24.xml` (+15 -0)
➕ `android/app/src/main/res/drawable/skip_next_24.xml` (+10 -0)
➕ `android/app/src/main/res/drawable/skip_previous_24.xml` (+10 -0)
📝 `android/app/src/main/res/values/strings.xml` (+2 -0)
</details>
### 📄 Description
Control buttons in Android Auto (and probably Android Wear too) are messy. The skip back/forward buttons appears sometimes and the jump forward/back a few seconds don't show at all in minimized modes.
This PR does the following:
- Show skip buttons if multiple items are available. 
- Hide skip buttons when multiple queue items are not available. 
- Show jump buttons when the app is "minimized" instead of skip buttons. 
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/365
Author: @vangorra
Created: 9/4/2022
Status: ✅ Merged
Merged: 9/4/2022
Merged by: @advplyr
Base:
master← Head:vangorra/aa-button-cleanup📝 Commits (2)
453365fFix buttons for Android Auto (and probably wear too).92f10fdMerge branch 'advplyr:master' into vangorra/aa-button-cleanup📊 Changes
9 files changed (+115 additions, -13 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/data/DeviceClasses.kt(+1 -1)📝
android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt(+2 -0)📝
android/app/src/main/java/com/audiobookshelf/app/player/PlayerConstants.kt(+2 -0)📝
android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt(+58 -12)➕
android/app/src/main/res/drawable-anydpi/skip_next_24.xml(+15 -0)➕
android/app/src/main/res/drawable-anydpi/skip_previous_24.xml(+15 -0)➕
android/app/src/main/res/drawable/skip_next_24.xml(+10 -0)➕
android/app/src/main/res/drawable/skip_previous_24.xml(+10 -0)📝
android/app/src/main/res/values/strings.xml(+2 -0)📄 Description
Control buttons in Android Auto (and probably Android Wear too) are messy. The skip back/forward buttons appears sometimes and the jump forward/back a few seconds don't show at all in minimized modes.
This PR does the following:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.