crash fix
This commit is contained in:
parent
d0df11ed90
commit
347be014d8
1 changed files with 3 additions and 2 deletions
|
@ -505,8 +505,9 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
|
||||||
};
|
};
|
||||||
if (choice.value || map == null) {
|
if (choice.value || map == null) {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
} else {
|
} else if (map instanceof FragmentActivity) {
|
||||||
TripRecordingBottomSheet.showInstance(mapActivity.getSupportFragmentManager());
|
FragmentActivity activity = (FragmentActivity) map;
|
||||||
|
TripRecordingBottomSheet.showInstance(activity.getSupportFragmentManager());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue