-
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
NMA-615 | Contacts Page | Unregistered Users #519
NMA-615 | Contacts Page | Unregistered Users #519
Conversation
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.
I left a few comments. It seems that this PR is not based on the most recent commit from the evonet-develop
branch, though, GitHub does not point this out.
This PR will have conflicts with #516 (Merging the Master Branch into evonet-develop to add many of the fixes for the past few releases of Dash Wallet). We will need to determine the best merge order.
One issue found is this:
- From Home Screen with no username, click on the contacts Screen.
- On Contacts Screen, click upgrade.
- Cancel / go back to the home screen, the Contacts button in the footer is still highlighted
- Clicking on the Contacts button on the footer doesn't return to the Contacts Screen
Good find, @HashEngineering! Issue addressed. |
…ity and fragments with modern one based on shared view model.
I'm all for refactoring WalletFragment and MainActivity but let's do it right! @sambarboza I think Hopefully, all the changes I made are fully correct since I'm in hurry... @HashEngineering let's merge this PR first (after improving it a bit) ant then l'll resolve all the conflicts with #516. |
viewModel.blockchainStateData.observe(this, Observer { | ||
// just to trigger data loading | ||
}) | ||
viewModel.isPlatformAvailableData.observe(this, Observer { | ||
// just to trigger data loading | ||
}) |
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.
Those empty observers could be replaced by other way of triggering data loading but let's leave it as it is
I'll fix it when working on "JoinDash" shortcut when #516 in merged (it will be merged after this PR)
@@ -119,27 +132,7 @@ class WalletFragment : Fragment() { | |||
showHideJoinDashPayAction() | |||
} | |||
|
|||
fun setBlockchainState(blockchainState: BlockchainState?) { | |||
this.blockchainState = blockchainState | |||
if (isDetached || !isVisible) { |
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 shouldn't be needed when using LiveDatas
I couldn't resist myself from implementing further improvements in MainActivityViewModel. |
…no-user # Conflicts: # wallet/res/values-th/strings-extra.xml # wallet/src/de/schildbach/wallet/ui/WalletFragment.kt
Minor code refactoring.
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.
Looks good with the new LiveData's. Works well.
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: