Skip to content

Commit

Permalink
[android] reset layer mode when tutorial is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
d5090c3bdec authored and Polas committed Nov 23, 2020
1 parent 8230826 commit ab1cb3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/src/com/mapswithme/maps/MwmActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2550,6 +2550,8 @@ public Tutorial getTutorial()
public void setTutorial(@NonNull Tutorial tutorial)
{
mTutorial = tutorial;
if (mTutorial.isLayer())
mToggleMapLayerController.turnOff();
mToggleMapLayerController.setTutorial(tutorial);
}

Expand Down
5 changes: 5 additions & 0 deletions android/src/com/mapswithme/maps/tips/Tutorial.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,9 @@ public static <T> Tutorial requestCurrent(@NonNull Context context,
LOGGER.d(TAG, "tipsApi = " + tipsApi);
return tipsApi;
}

public boolean isLayer()
{
return this == SUBWAY || this == ISOLINES;
}
}

0 comments on commit ab1cb3c

Please sign in to comment.