Skip to content

Commit

Permalink
Fixed issue where map still had focus when instruction list was visib…
Browse files Browse the repository at this point in the history
…le. Also fixed issue where when closing the instruction view, the recenter button was always shown.
  • Loading branch information
Devota Aabel committed Jun 12, 2018
1 parent 85d5d46 commit c5a2026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public void onInstructionListVisibilityChanged(boolean visible) {
if (visible) {
view.hideRecenterBtn();
} else {
view.showRecenterBtn();
if (view.isSummaryBottomSheetHidden()) {
view.showRecenterBtn();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ public void hideInstructionList() {
*/
public void showInstructionList() {
onInstructionListVisibilityChanged(true);
instructionLayout.requestFocus();
beginDelayedTransition();
int orientation = getContext().getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
Expand Down

0 comments on commit c5a2026

Please sign in to comment.