Skip to content

feat:Update Shortcut Bar - #766

Merged
HashEngineering merged 9 commits into
explore-dashfrom
NMA-983_Dynamic_Shortcut_Bar
Sep 30, 2021
Merged

HashEngineering merged 9 commits into
explore-dashfrom
NMA-983_Dynamic_Shortcut_Bar

Conversation

@hadia

@hadia hadia commented Sep 24, 2021 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@hadia
hadia marked this pull request as ready for review September 24, 2021 19:51
@hadia hadia changed the title Update Shortcut Bar feature :Update Shortcut Bar Sep 24, 2021
@hadia hadia changed the title feature :Update Shortcut Bar feat:Update Shortcut Bar Sep 24, 2021
}
});
showHideSecureAction();
refreshIfUserHasBalance();

@HashEngineering HashEngineering Sep 26, 2021 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem like it will be live. The balance can change from zero to non-zero or from non-zero to zero.

This is only called within onCreate. If the balance changes, then the activity has to be restarted to reflect the correct buttons on this shortcut bar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix sync part

Comment on lines -133 to -138
val numberOfButtons = if (isSmallScreen) 3 else 4
secondaryItems.forEach {
it.visibility = if (displayed.size < numberOfButtons) {
displayed.add(it)
View.VISIBLE
} else View.GONE

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For smaller screens, only 3 buttons should be displayed. The story does not define what should be displayed if there are only three places for shortcut buttons.

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@HashEngineering
HashEngineering merged commit dc0d427 into explore-dash Sep 30, 2021
@HashEngineering
HashEngineering deleted the NMA-983_Dynamic_Shortcut_Bar branch May 19, 2022 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants