AttachmentViewer: Disable click indication
This commit is contained in:
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user