mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-26 06:28:43 +02:00
[PR #1774] [MERGED] Significantly improve Android UI performance when resuming from background #1692
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1774
Author: @FreedomBen
Created: 1/7/2026
Status: ✅ Merged
Merged: 2/8/2026
Merged by: @advplyr
Base:
master← Head:dont-queue-background-display-events📝 Commits (2)
5250adbDon't queue display events while backgrounded140bc7fSkip progress updates when backgrounded📊 Changes
2 files changed (+44 additions, -0 deletions)
View changed files
📝
android/app/src/main/java/com/audiobookshelf/app/managers/SleepTimerManager.kt(+14 -0)📝
android/app/src/main/java/com/audiobookshelf/app/plugins/AbsAudioPlayer.kt(+30 -0)📄 Description
Brief summary
Significantly improve UI performance when resuming from background
When the app is backgrounded, diplay events were queued and could build up over time, leading to a sluggish resume when the app was foregrounded as the queue was processed. As these updates are all stale by the time the app is foregrounded, we should ignore them to prevent a long resume process.
Which issue is fixed?
Fixes #1773
Pull Request Type
Android only
In-depth Description
This does not affect the notification tray indicator.
How have you tested this?
Yes, tested on Pixel 8 Pro over the course of a few days (~ 12 listening sessions spread across multiple hours, including overnight)
Screenshots
No UI changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.