Fix MapRouteInfoMenuFragment crash

This commit is contained in:
Alexey Kulish 2017-05-30 16:04:47 +03:00
parent c61ff3bbf8
commit 554e7b0a52

View file

@ -81,13 +81,17 @@ public class MapRouteInfoMenuFragment extends Fragment {
} }
public void updateInfo() { public void updateInfo() {
if (menu != null) {
menu.updateInfo(mainView); menu.updateInfo(mainView);
}
applyDayNightMode(); applyDayNightMode();
} }
public void updateFromIcon() { public void updateFromIcon() {
if (menu != null) {
menu.updateFromIcon(mainView); menu.updateFromIcon(mainView);
} }
}
public void show(MapActivity mapActivity) { public void show(MapActivity mapActivity) {
int slideInAnim = R.anim.slide_in_bottom; int slideInAnim = R.anim.slide_in_bottom;