Fix MapRouteInfoMenuFragment crash
This commit is contained in:
parent
c61ff3bbf8
commit
554e7b0a52
1 changed files with 6 additions and 2 deletions
|
@ -81,12 +81,16 @@ public class MapRouteInfoMenuFragment extends Fragment {
|
|||
}
|
||||
|
||||
public void updateInfo() {
|
||||
menu.updateInfo(mainView);
|
||||
if (menu != null) {
|
||||
menu.updateInfo(mainView);
|
||||
}
|
||||
applyDayNightMode();
|
||||
}
|
||||
|
||||
public void updateFromIcon() {
|
||||
menu.updateFromIcon(mainView);
|
||||
if (menu != null) {
|
||||
menu.updateFromIcon(mainView);
|
||||
}
|
||||
}
|
||||
|
||||
public void show(MapActivity mapActivity) {
|
||||
|
|
Loading…
Reference in a new issue