crash fix

This commit is contained in:
androiddevkkotlin 2021-01-17 10:52:02 +02:00
parent d0df11ed90
commit 347be014d8

View file

@ -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());
} }
} }