mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Allow copying the bunker uri after connected
This commit is contained in:
@@ -119,27 +119,32 @@ fun EditPermission(
|
||||
Column(
|
||||
modifier = modifier,
|
||||
) {
|
||||
if (!applicationData.isConnected) {
|
||||
if (applicationData.isConnected) {
|
||||
Text(
|
||||
bunkerUri,
|
||||
Modifier
|
||||
.padding(bottom = 8.dp),
|
||||
textAlign = TextAlign.Start,
|
||||
fontSize = 18.sp,
|
||||
stringResource(R.string.connected_app_warning),
|
||||
)
|
||||
|
||||
AmberButton(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth(),
|
||||
onClick = {
|
||||
clipboardManager.setText(AnnotatedString(bunkerUri))
|
||||
},
|
||||
text = stringResource(R.string.copy_to_clipboard),
|
||||
)
|
||||
|
||||
Spacer(Modifier.height(12.dp))
|
||||
}
|
||||
|
||||
Text(
|
||||
bunkerUri,
|
||||
Modifier
|
||||
.padding(bottom = 8.dp),
|
||||
textAlign = TextAlign.Start,
|
||||
fontSize = 18.sp,
|
||||
)
|
||||
|
||||
AmberButton(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth(),
|
||||
onClick = {
|
||||
clipboardManager.setText(AnnotatedString(bunkerUri))
|
||||
},
|
||||
text = stringResource(R.string.copy_to_clipboard),
|
||||
)
|
||||
|
||||
Spacer(Modifier.height(12.dp))
|
||||
|
||||
AmberButton(
|
||||
modifier = Modifier.padding(top = 20.dp),
|
||||
onClick = {
|
||||
|
||||
@@ -511,4 +511,5 @@
|
||||
<string name="communities">"Communities: "</string>
|
||||
<string name="hashtags">"Hashtags: "</string>
|
||||
<string name="relays_text">"Relays: "</string>
|
||||
<string name="connected_app_warning">Some applications may not work if you try to reuse your bunker URI. Delete this application and create a new one in case the login is not working.</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user