-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DashPay: Send payment | Contact UI #464
Conversation
* New classes NotificationsLiveData, NotificationCountLiveData * Listeners react to updating the contact database and then update data * The notifications screen is live
* Remove timer code from BlockchainServiceImpl
…into dpp-0.13 # Conflicts: # wallet/src/de/schildbach/wallet/ui/HeaderBalanceFragment.java # wallet/src/de/schildbach/wallet/ui/dashpay/CreateIdentityService.kt # wallet/src/de/schildbach/wallet/ui/dashpay/DashPayViewModel.kt # wallet/src/de/schildbach/wallet/ui/dashpay/NotificationsActivity.kt # wallet/src/de/schildbach/wallet/ui/dashpay/PlatformRepo.kt
Fix other bugs with EnterAmountFragment and ConfirmTransactionDialog
Submit new bloom filters when contact is added
…o dashpay-send-payment # Conflicts: # wallet/src/de/schildbach/wallet/ui/dashpay/DashPayViewModel.kt # wallet/src/de/schildbach/wallet/ui/dashpay/PlatformRepo.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
…into dashpay-send-payment # Conflicts: # wallet/src/de/schildbach/wallet/ui/dashpay/ContactsFragment.kt
Reverted deletion of timerHandler which was replaced by backgroundHandler
…dler with direct coroutine approach
if(initialize) { | ||
walletApplication.saveWalletAndFinalizeInitialization() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was moved out of the background thread therefore we should retest all the wallet initialization scenarios.
2e3d14e#diff-05204d8915f357bdf7c4bfcbed61d7c3R79
blockchainIdentityDataDaoAsync.load()?.let { | ||
blockchainIdentity = initBlockchainIdentity(it, walletApplication.wallet) | ||
while (isActive) { | ||
log.info("Timer: Update contacts") | ||
platformRepoInstance.updateContactRequests() | ||
delay(UPDATE_TIMER_DELAY) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will load the blockchainIdentity
and start periodic contacts sync without the need of using Handler.
GlobalScope is active as long as the app is launched.
Periodic contacts sync will not start if there is no blockchainIdentity
yet.
@@ -317,6 +317,8 @@ class CreateIdentityService : LifecycleService() { | |||
platformRepo.updateCreationState(blockchainIdentityData, CreationState.DONE) | |||
} | |||
|
|||
PlatformRepo.getInstance().init() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also start the periodic contacts sync
…romProtobuf() method so that it is triggered for a regular app launches. During the wallet restoration it will be triggered after restoring the identity.
…dWalletFromProtobuf() method so that it is triggered for a regular app launches. During the wallet restoration it will be triggered after restoring the identity." This reverts commit 9fa9947
…process is complete.
This will be merged after the next round of QA testing. |
Issue being fixed or feature implemented
NMA-372
Add ability to send payments to a contact.
Known Issues:
Related PR's and Dependencies
dashpay/android-dashpay#18
dashpay/dashj#82
Screenshots / Videos
How Has This Been Tested?
Checklist: