File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -759,16 +759,16 @@ class AppViewModel @Inject constructor(
759759 private fun onScanNodeId (data : Scanner .NodeId ) {
760760 val (url, network) = data
761761 val appNetwork = Env .network.toCoreNetworkType()
762- // if (network != appNetwork) {
763- // toast(
764- // type = Toast.ToastType.WARNING,
765- // title = context.getString(R.string.other__qr_error_network_header),
766- // description = context.getString(R.string.other__qr_error_network_text)
767- // .replace("{selectedNetwork}", appNetwork.name)
768- // .replace("{dataNetwork}", network.name),
769- // )
770- // return
771- // }
762+ if (network != appNetwork) {
763+ toast(
764+ type = Toast .ToastType .WARNING ,
765+ title = context.getString(R .string.other__qr_error_network_header),
766+ description = context.getString(R .string.other__qr_error_network_text)
767+ .replace(" {selectedNetwork}" , appNetwork.name)
768+ .replace(" {dataNetwork}" , network.name),
769+ )
770+ return
771+ }
772772 hideSheet() // hide scan sheet if opened
773773 val nextRoute = Routes .ExternalConnection (url)
774774 mainScreenEffect(MainScreenEffect .Navigate (nextRoute))
You can’t perform that action at this time.
0 commit comments