Private
Public Access
1
0

AttachmentViewer: Disable click indication

This commit is contained in:
2024-03-23 22:50:49 -07:00
parent 3d165b6acd
commit f8ee8458ef

View File

@@ -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
}
)