thunderbiscuit / padawan-wallet

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

Proposed Fix For: Bug: Double click on receive or send button opens fragment multiple times #287 #303

Closed shagil77 closed 1 year ago

shagil77 commented 1 year ago

I've used two MutableLiveData in the WalletViewModel which hold the Live state(whether currently open or closed) of the SendScreen and the RecieveScreen, to determine in real-time whether they're open or closed. Using the above states, the onClick properties of the Send and Recieve buttons are handled respectively, and it solves the present issue. Do review the code and send in your feedbacks.

shagil77 commented 1 year ago

287

thunderbiscuit commented 1 year ago

As mentioned on #295, I don't think I have the bandwidth to deal with this correctly at the moment. Leaving issue #307 open to keep track.