Commit Graph

3 Commits (be205ea7656ecc6f3c92ea338f4a735e4fef7d8c)

Author SHA1 Message Date
Severiano Jaramillo be205ea765 Increase Receive QRCode margin.
Increased the margin of the QR codes shown in the Receive screen, to make it easier for other phones to scan the QRs when the app is in night mode.
2019-10-31 12:59:53 -06:00
Severiano Jaramillo 855f47e793 Generate QR in background thread.
- Moved the logic to generate the QR Code image from ReceiveTransactionFragment to its ViewModel (ReceiveTransactionViewModel), and used coroutines to send that process to a background thread to make sure this does not freeze the UI.
2019-08-27 13:47:25 -05:00
Severiano Jaramillo 2a88821710 Create ReceiveTransactionViewModel.
- The ReceiveTransactionFragment was using two ViewModels, which is not recommended. According to Google's MVVM guidelines, each activity/fragment should have only one ViewModel and that ViewModel should be coupled to only one activity/fragment. For that reason the methods used in the two ViewModels in ReceiveTransactionFragment were merged into ReceiveTransactionViewModel.
2019-08-27 11:21:26 -05:00