diff --git a/app/src/main/java/net/buzzert/kordophonedroid/ui/attachments/AttachmentViewer.kt b/app/src/main/java/net/buzzert/kordophonedroid/ui/attachments/AttachmentViewer.kt index 5d3f5a7..b670103 100644 --- a/app/src/main/java/net/buzzert/kordophonedroid/ui/attachments/AttachmentViewer.kt +++ b/app/src/main/java/net/buzzert/kordophonedroid/ui/attachments/AttachmentViewer.kt @@ -1,6 +1,8 @@ package net.buzzert.kordophonedroid.ui.attachments +import androidx.compose.foundation.Indication import androidx.compose.foundation.clickable +import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer @@ -37,6 +39,7 @@ fun AttachmentViewer( ) }) { padding -> val zoomState = rememberZoomState() + val interactionSource = remember { MutableInteractionSource() } val data = AttachmentFetchData(attachmentGuid, preview = false) Column(modifier = Modifier.padding(padding)) { Spacer(modifier = Modifier.weight(1f)) @@ -51,7 +54,10 @@ fun AttachmentViewer( .zoomable(zoomState) .fillMaxWidth() .align(Alignment.CenterHorizontally) - .clickable { + .clickable( + interactionSource = interactionSource, + indication = null + ) { topBarVisible.value = !topBarVisible.value } )