Skip to content

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?

*/
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.
@devotaaabel devotaaabel force-pushed the devota-recenter-issues branch from c7ff8ff to c5a2026 Compare June 12, 2018 18:29
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