Skip to content

Commit b5b4e50

Browse files
committed
fix: cjit message visibiity
1 parent f02f3bd commit b5b4e50

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/receive/ReceiveQrScreen.kt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -282,22 +282,24 @@ private fun ReceiveLightningFunds(
282282
onCjitToggle: (Boolean) -> Unit,
283283
) {
284284
Column {
285-
if (cjitInvoice.value == null) {
285+
AnimatedVisibility (!cjitActive.value && cjitInvoice.value == null) {
286286
Headline(
287287
text = stringResource(R.string.wallet__receive_text_lnfunds).withAccent(accentColor = Colors.Purple)
288288
)
289289
}
290290
Row(verticalAlignment = Alignment.CenterVertically) {
291291
BodyM(text = stringResource(R.string.wallet__receive_spending))
292292
Spacer(modifier = Modifier.weight(1f))
293-
Icon(
294-
painter = painterResource(R.drawable.empty_state_arrow_horizontal),
295-
contentDescription = null,
296-
tint = Colors.White64,
297-
modifier = Modifier
298-
.rotate(17.33f)
299-
.padding(start = 7.65.dp, end = 13.19.dp)
300-
)
293+
AnimatedVisibility(!cjitActive.value && cjitInvoice.value == null) {
294+
Icon(
295+
painter = painterResource(R.drawable.empty_state_arrow_horizontal),
296+
contentDescription = null,
297+
tint = Colors.White64,
298+
modifier = Modifier
299+
.rotate(17.33f)
300+
.padding(start = 7.65.dp, end = 13.19.dp)
301+
)
302+
}
301303
Switch(
302304
checked = cjitActive.value,
303305
onCheckedChange = onCjitToggle,

0 commit comments

Comments
 (0)