File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/receive Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 11package to.bitkit.ui.screens.wallets.receive
22
33import android.graphics.Bitmap
4+ import androidx.compose.animation.AnimatedVisibility
45import androidx.compose.foundation.layout.Arrangement
56import androidx.compose.foundation.layout.Column
67import androidx.compose.foundation.layout.Row
@@ -177,16 +178,17 @@ fun ReceiveQrScreen(
177178
178179 Spacer (Modifier .height(24 .dp))
179180
180- // Toggle button
181- PrimaryButton (
182- text = stringResource(
183- if (showDetails) R .string.wallet__receive_show_qr
184- else R .string.wallet__receive_show_details
185- ),
186- onClick = { showDetails = ! showDetails },
187- fullWidth = true ,
188- modifier = Modifier .testTag(" ReceiveToggleButton" )
189- )
181+ AnimatedVisibility (visible = lightningState.nodeLifecycleState.isRunning()) {
182+ PrimaryButton (
183+ text = stringResource(
184+ if (showDetails) R .string.wallet__receive_show_qr
185+ else R .string.wallet__receive_show_details
186+ ),
187+ onClick = { showDetails = ! showDetails },
188+ fullWidth = true ,
189+ modifier = Modifier .testTag(" ReceiveToggleButton" )
190+ )
191+ }
190192
191193 Spacer (Modifier .height(16 .dp))
192194 }
You can’t perform that action at this time.
0 commit comments