mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-07-23 19:50:18 +00:00
Made collection url selectable (bitfireAT/davx5#275)
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
This commit is contained in:
parent
ae303e3e8d
commit
6d278b7e04
|
@ -15,6 +15,7 @@ import android.view.View
|
|||
import android.view.ViewGroup
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.text.selection.SelectionContainer
|
||||
import androidx.compose.material.MaterialTheme
|
||||
import androidx.compose.material.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
|
@ -86,7 +87,9 @@ class CollectionInfoFragment: DialogFragment() {
|
|||
val collectionState = model.collection.observeAsState()
|
||||
collectionState.value?.let { collection ->
|
||||
Text(stringResource(R.string.collection_properties_url), style = MaterialTheme.typography.h5)
|
||||
Text(collection.url.toString(), modifier = Modifier.padding(bottom = 16.dp), fontFamily = FontFamily.Monospace)
|
||||
SelectionContainer {
|
||||
Text(collection.url.toString(), modifier = Modifier.padding(bottom = 16.dp), fontFamily = FontFamily.Monospace)
|
||||
}
|
||||
}
|
||||
|
||||
// Owner
|
||||
|
|
Loading…
Reference in a new issue