Skip to content
Snippets Groups Projects
Commit 0db2e23c authored by Rinaldy Adin's avatar Rinaldy Adin
Browse files

fix: error randomize trx after landscape in graph

parent 8342f4ff
Branches
Tags
1 merge request!20Fix/randomize landscape
...@@ -67,13 +67,16 @@ class MainActivity : AppCompatActivity(), ExportAlertDialogFragment.ExportAlertD ...@@ -67,13 +67,16 @@ class MainActivity : AppCompatActivity(), ExportAlertDialogFragment.ExportAlertD
val bundle = Bundle().apply { val bundle = Bundle().apply {
putInt("random_amount", randomAmount) putInt("random_amount", randomAmount)
} }
navController.navigate(
R.id.action_navigation_settings_to_navigation_transactions if (navController.currentDestination?.id == R.id.navigation_settings)
) navController.navigate(
navController.navigate( R.id.action_navigation_settings_to_navigation_transactions
R.id.action_navigation_transactions_to_navigation_form_transaction, )
bundle if (navController.currentDestination?.id == R.id.navigation_transactions)
) navController.navigate(
R.id.action_navigation_transactions_to_navigation_form_transaction,
bundle
)
} }
"EXPIRED_TOKEN" -> { "EXPIRED_TOKEN" -> {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment