wolfskin/app/src/main/java/com/github/damontecres/wholphin/services
Damontecres 98fba1340f
Fix OS screensaver starting during playback with dim enabled (#1956)
## Description
Fixes some devices activating the OS screensaver during playback when
the in-app dim was enabled.

I was not able to reproduce this on Shield 2017/2019, but could easily
on a Fire TV Stick. #1834 added the dim feature and, when enabled, would
not pass the keep screen on flag to the OS during playback. It seems
maybe regular Android TV's screensaver also listened to active media
session to prevent starting but maybe Fire TV OS doesn't. I'm not 100%
sure. This PR changes the logic slightly so that the keep screen on flag
is always set during playback.

### Related issues
Fixes #1894
Related to dim feature from
https://github.com/damontecres/Wholphin/pull/1834

### Testing
Emulator, shield 2019, & fire tv stick 4k

## Screenshots
N/A

## AI or LLM usage
None
2026-09-12 18:38:54 -04:00
..
hilt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
tvprovider Parse intents to search, view, or play media (#1688) 2026-07-20 10:04:34 -04:00
AppUpgradeHandler.kt Fix experimental AC3 setting being used by default (#1879) 2026-08-20 17:08:31 -04:00
BackdropService.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
DatePlayedService.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
DeviceProfileService.kt Fix experimental AC3 setting being used by default (#1879) 2026-08-20 17:08:31 -04:00
DisplayPreferencesService.kt Add option to remove item from Continue Watching and Next Up rows (#1140) 2026-04-07 16:04:21 -04:00
ExtrasService.kt Update item fields queried & expand usage of primary aspect ratio (#1852) 2026-08-17 22:54:15 -04:00
FavoriteWatchManager.kt Add option to remove item from Continue Watching and Next Up rows (#1140) 2026-04-07 16:04:21 -04:00
FilterOptionCache.kt Fix loading a canceled discover tv show (#1709) 2026-07-16 11:35:32 -04:00
HomeSettingsService.kt Fixes to default home view options for music & videos (#1926) 2026-09-01 17:52:47 -04:00
ImageUrlService.kt Fix trying to fetch images with zero fillWidth (#1753) 2026-07-26 16:36:49 -04:00
IntentService.kt Fix Next Up channel launch sign in (#1886) 2026-08-21 15:04:07 -04:00
KeyValueService.kt Better collection pages including more view options (#1137) 2026-03-28 10:31:03 -04:00
LatestNextUpService.kt Fix resume query for Jellyfin 12 (#1715) 2026-07-17 11:23:31 -04:00
LatestNextUpWorker.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
LiveTvService.kt Add more searchable types & choose what to search (#1857) 2026-08-26 14:39:02 -04:00
MediaManagementService.kt Remove dependency on livedata libraries (#1453) 2026-05-25 08:27:19 -04:00
MusicService.kt Fix experimental AC3 setting being used by default (#1879) 2026-08-20 17:08:31 -04:00
NavDrawerService.kt Update favorites page with more types (#1864) 2026-08-26 21:50:13 -04:00
NavigationManager.kt Better error handling for errors on home page rows (#1128) 2026-03-21 19:17:43 -04:00
PeopleFavorites.kt Add a lot of code documentation (#1145) 2026-03-29 10:52:25 -04:00
PlaybackLifecycleObserver.kt External player follow up fixes (#1294) 2026-04-23 15:08:25 -04:00
PlayerFactory.kt Pause music playback when another app takes audio focus (#1842) 2026-08-17 22:51:51 -04:00
PlaylistCreator.kt Update item fields queried & expand usage of primary aspect ratio (#1852) 2026-08-17 22:54:15 -04:00
RefreshRateService.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
RememberedTabService.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
ScreensaverService.kt Fix OS screensaver starting during playback with dim enabled (#1956) 2026-09-12 18:38:54 -04:00
SeerrApi.kt Create FireTV specific app variant (#1230) 2026-04-11 19:30:23 -04:00
SeerrServerRepository.kt Remove dependency on livedata libraries (#1453) 2026-05-25 08:27:19 -04:00
SeerrService.kt Fix person credits: movie release dates, full filmography, sorted order (#1950) 2026-09-11 15:22:02 -04:00
ServerEventListener.kt Several minor bug fixes (#1811) 2026-08-13 12:36:20 -04:00
ServerReportService.kt Consolidate sending media reports & app logs (#1936) 2026-09-05 12:11:38 -04:00
SetupNavigationManager.kt Better error handling for errors on home page rows (#1128) 2026-03-21 19:17:43 -04:00
StreamChoiceService.kt Various minor bug fixes (#1707) 2026-07-18 17:50:35 -04:00
SuggestionsCache.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
SuggestionService.kt Remove dependency on livedata libraries (#1453) 2026-05-25 08:27:19 -04:00
SuggestionsSchedulerService.kt Remove dependency on livedata libraries (#1453) 2026-05-25 08:27:19 -04:00
SuggestionsWorker.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
ThemeSongPlayer.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
TrailerService.kt De-duplicate string resource keys (#1560) 2026-06-12 01:24:24 -04:00
UpdateChecker.kt Several minor bug fixes (#1811) 2026-08-13 12:36:20 -04:00
UserPreferencesService.kt Add option to override user profile settings for audio & subtitle languages (#1680) 2026-07-14 14:17:31 -04:00
UserSwitchListener.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00