Hide widget tune button for note widget

This commit is contained in:
MM20 2023-04-27 20:55:29 +02:00
parent e726ff1ffd
commit d8996a4633
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -126,6 +126,7 @@ fun WidgetItem(
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
maxLines = 1 maxLines = 1
) )
if (widget !is NotesWidget) {
IconButton(onClick = { IconButton(onClick = {
configure = true configure = true
}) { }) {
@ -134,6 +135,7 @@ fun WidgetItem(
contentDescription = stringResource(R.string.settings) contentDescription = stringResource(R.string.settings)
) )
} }
}
IconButton(onClick = { onWidgetRemove() }) { IconButton(onClick = { onWidgetRemove() }) {
Icon( Icon(
imageVector = Icons.Rounded.Delete, imageVector = Icons.Rounded.Delete,