@@ -79,6 +79,8 @@ fun ViewOTPScreen(
7979 val searchQuery by viewModel.searchQuery.collectAsState()
8080 val sortType by viewModel.sortType.collectAsState()
8181
82+ val gestureType by viewModel.gestureType.collectAsState()
83+
8284 val context = LocalContext .current
8385 val coroutineScope = rememberCoroutineScope()
8486 val clipboardManager = LocalClipboard .current
@@ -185,7 +187,10 @@ fun ViewOTPScreen(
185187 OTPAccountItem (
186188 modifier = Modifier ,
187189 account = accountWithCode,
188- onClick = { onAccountClick(accountWithCode.account.id) },
190+ gestureType = gestureType,
191+ onClick = {
192+ onAccountClick(accountWithCode.account.id)
193+ },
189194 onLongClick = {
190195 coroutineScope.launch {
191196 if (! accountWithCode.currentCode.isNullOrEmpty()) {
@@ -264,14 +269,18 @@ fun ViewOTPScreen(
264269 OTPAccountItem (
265270 modifier = Modifier ,
266271 account = accountWithCode,
267- onClick = { onAccountClick(accountWithCode.account.id) },
272+ gestureType = gestureType,
273+ onClick = {
274+ onAccountClick(accountWithCode.account.id)
275+ },
268276 onLongClick = {
269277 coroutineScope.launch {
270278 if (! accountWithCode.currentCode.isNullOrEmpty()) {
271- val clipData = ClipData .newPlainText(
272- context.getString(R .string.otp_code),
273- accountWithCode.currentCode
274- )
279+ val clipData =
280+ ClipData .newPlainText(
281+ context.getString(R .string.otp_code),
282+ accountWithCode.currentCode
283+ )
275284 coroutineScope.launch {
276285 clipboardManager.setClipEntry(
277286 clipData.toClipEntry()
0 commit comments