thunderbiscuit / padawan-wallet

The bitcoin wallet trainer on Android.
https://padawanwallet.com/
Apache License 2.0
116 stars 51 forks source link

Fix: App stops crashing during sync in WalletHome #163

Closed fivetran-tangyetong closed 2 years ago

fivetran-tangyetong commented 2 years ago

Fixes #139 by changing RequireView() in the coroutine to using the rootView of WalletHome. This way the coroutine will use the rootView instead of finding the missing child view when the fragment is changed.

Another way of fixing this would be using a boolean that does not let the coroutine use the snackbar when the fragment is paused, do let me know if this is not the ideal solution!

The other snackbars need not be changed since they are not launched in a coroutine.