[PR #1555] [MERGED] Add:Android sleep timer setting to play a chime when almost finished #1617

Closed
opened 2026-04-24 23:59:44 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1555
Author: @advplyr
Created: 4/24/2025
Status: Merged
Merged: 4/25/2025
Merged by: @advplyr

Base: masterHead: sleep_timer_chime_android


📝 Commits (2)

  • d97c6a0 Add:Android sleep timer setting to play a chime when almost finished #600
  • 67f5145 Remove unused imports and release log

📊 Changes

9 files changed (+51 additions, -8 deletions)

View changed files

📝 android/app/src/main/java/com/audiobookshelf/app/data/DeviceClasses.kt (+5 -3)
📝 android/app/src/main/java/com/audiobookshelf/app/device/DeviceManager.kt (+4 -0)
📝 android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt (+21 -0)
📝 android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt (+0 -1)
📝 android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt (+0 -4)
📝 android/app/src/main/java/com/audiobookshelf/app/player/ShakeDetector.kt (+2 -0)
android/app/src/main/res/raw/bell.mp3 (+0 -0)
📝 pages/settings.vue (+17 -0)
📝 strings/en-us.json (+2 -0)

📄 Description

This adds a new sleep timer setting for Android: "Play a chime when almost finished".
A chime sound is played when 30 seconds are remaining.

The setting was labeled "almost finished" in case we want to support another setting to change the time remaining.
The volume of the chime sound is set to 0.7 and could also potentially be another setting.

I picked out a chime sound pretty quickly so we can swap this out if we find a better one.

Lastly, I slightly increased the shake sensitivity for "Very high", "high" and "medium" after doing some testing and added an AbsLogger log for that.

Fixes #600


🔄 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/1555 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 4/24/2025 **Status:** ✅ Merged **Merged:** 4/25/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `sleep_timer_chime_android` --- ### 📝 Commits (2) - [`d97c6a0`](https://github.com/advplyr/audiobookshelf-app/commit/d97c6a087234f2fb2ceabc32d89c0ce24c8e2930) Add:Android sleep timer setting to play a chime when almost finished #600 - [`67f5145`](https://github.com/advplyr/audiobookshelf-app/commit/67f514524ff3fd69e27a196c4ccc1148a51d8434) Remove unused imports and release log ### 📊 Changes **9 files changed** (+51 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `android/app/src/main/java/com/audiobookshelf/app/data/DeviceClasses.kt` (+5 -3) 📝 `android/app/src/main/java/com/audiobookshelf/app/device/DeviceManager.kt` (+4 -0) 📝 `android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt` (+21 -0) 📝 `android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt` (+0 -1) 📝 `android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt` (+0 -4) 📝 `android/app/src/main/java/com/audiobookshelf/app/player/ShakeDetector.kt` (+2 -0) ➕ `android/app/src/main/res/raw/bell.mp3` (+0 -0) 📝 `pages/settings.vue` (+17 -0) 📝 `strings/en-us.json` (+2 -0) </details> ### 📄 Description This adds a new sleep timer setting for Android: "Play a chime when almost finished". A chime sound is played when 30 seconds are remaining. The setting was labeled "almost finished" in case we want to support another setting to change the time remaining. The volume of the chime sound is set to 0.7 and could also potentially be another setting. I picked out a chime sound pretty quickly so we can swap this out if we find a better one. Lastly, I slightly increased the shake sensitivity for "Very high", "high" and "medium" after doing some testing and added an AbsLogger log for that. Fixes #600 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-24 23:59:44 +02:00
adam closed this issue 2026-04-24 23:59:44 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1617