Skip to content
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

Fixed issue where map still had focus when instruction list was visib… #1014

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

devotaaabel
Copy link
Contributor

…le. Also fixed issue where when closing the instruction view, the recenter button was always shown. Fixes #1009

@devotaaabel devotaaabel added this to the 0.15.0 milestone Jun 11, 2018
@devotaaabel devotaaabel self-assigned this Jun 11, 2018
view.hideRecenterBtn();
} else {
view.showRecenterBtn();
if (recenterButtonVisible) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think recenterButtonVisible can be eliminated by checking if the SummaryBottomSheet is visible here instead with view.isSummaryBottomSheetHidden(). We only want to show if the bottomsheet is currently hidden right?

@@ -316,6 +316,7 @@ public void hideInstructionList() {
*/
public void showInstructionList() {
onInstructionListVisibilityChanged(true);
instructionLayout.requestFocus();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the MapView regain focus okay after the list is hidden?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup it does. I originally added abandonFocus to hideInstructionList, I can re-add it if you want

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem, as long as you didn't see any issues

…le. Also fixed issue where when closing the instruction view, the recenter button was always shown.
Copy link
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

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

Thanks @devotaaabel 🚢

@devotaaabel devotaaabel merged commit b467b64 into master Jun 13, 2018
@devotaaabel devotaaabel deleted the devota-recenter-issues branch June 18, 2018 18:54
@danesfeder danesfeder mentioned this pull request Jun 21, 2018
11 tasks
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.

Map gets the focus when swiping the instructions list
2 participants