lint issues

This commit is contained in:
2026-09-01 18:43:49 +09:00
parent f464d15b63
commit 15ea387160
3 changed files with 22 additions and 3 deletions
@@ -1,5 +1,6 @@
package swiss.qpq.gajumobile.ui.screens
import android.content.ClipData
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
@@ -24,16 +25,19 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalClipboardManager
import androidx.compose.ui.platform.ClipEntry
import androidx.compose.ui.platform.LocalClipboard
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import kotlinx.coroutines.launch
import swiss.qpq.gajumobile.R
import swiss.qpq.gajumobile.ui.components.GajuButton
import swiss.qpq.gajumobile.ui.components.GajuHeader
@@ -45,7 +49,8 @@ fun AccountNamingScreen(
onAccountNamed: (String) -> Unit,
onBack: (() -> Unit)? = null
) {
val clipboardManager = LocalClipboardManager.current
val clipboardManager = LocalClipboard.current
val scope = rememberCoroutineScope()
var name by remember { mutableStateOf("") }
var idExpanded by remember { mutableStateOf(false) }
@@ -105,7 +110,11 @@ fun AccountNamingScreen(
}
Spacer(modifier = Modifier.width(8.dp))
IconButton(
onClick = { clipboardManager.setText(AnnotatedString(publicKey)) },
onClick = {
scope.launch {
clipboardManager.setClipEntry(ClipEntry(ClipData.newPlainText("Account ID", publicKey)))
}
},
modifier = Modifier.size(24.dp)
) {
Icon(
+5
View File
@@ -106,6 +106,11 @@
<string name="network_mainnet">メインネット</string>
<string name="network_testnet">テストネット</string>
<!-- ExplorerScreen -->
<string name="explorer_title">トランザクション</string>
<string name="loading_groot">Grootを読み込み中</string>
<string name="explorer_content_placeholder">Gajuエクスプローラーの内容</string>
<!-- SetupChoiceScreen -->
<string name="create_account_button">アカウントを作成</string>
<string name="recover_account_button">アカウントを復元</string>
+5
View File
@@ -107,6 +107,11 @@
<string name="network_mainnet">Mainnet</string>
<string name="network_testnet">Testnet</string>
<!-- ExplorerScreen -->
<string name="explorer_title">Transactions</string>
<string name="loading_groot">Loading Groot</string>
<string name="explorer_content_placeholder">Gaju Explorer Content</string>
<!-- SetupChoiceScreen -->
<string name="create_account_button">Create Account</string>
<string name="recover_account_button">Recover Account</string>