mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-11-05 18:30:59 +01:00
Fixes slideshow images not being full screen (#1849)
## Description I accidentally removed the original fix/workaround from #1089 during a merge in #1052, so this PR restores the fix. ### Related issues Fixes #1736 Related to the original fix #1089 ### Testing Emulator with portrait and landscape images ## Screenshots N/A ## AI or LLM usage None
This commit is contained in:
parent
007ac4801c
commit
22a949bc76
1 changed files with 5 additions and 2 deletions
|
|
@ -408,8 +408,11 @@ fun SlideshowPage(
|
|||
ImageRequest
|
||||
.Builder(LocalContext.current)
|
||||
.data(imageState.url)
|
||||
.size(Size.ORIGINAL)
|
||||
.transitionFactory(CrossFadeFactory(750.milliseconds))
|
||||
.apply {
|
||||
// Fixes images noting being full size when resolutions change
|
||||
// See: https://github.com/damontecres/Wholphin/pull/1089
|
||||
if (isZoomed) size(Size.ORIGINAL)
|
||||
}.transitionFactory(CrossFadeFactory(750.milliseconds))
|
||||
.useExistingImageAsPlaceholder(true)
|
||||
.build(),
|
||||
contentDescription = null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue