Fix MapRouteInfoMenuFragment crash
This commit is contained in:
parent
9444ce255b
commit
6f401f17b2
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