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) {
runnable.run();
} else {
TripRecordingBottomSheet.showInstance(mapActivity.getSupportFragmentManager());
} else if (map instanceof FragmentActivity) {
FragmentActivity activity = (FragmentActivity) map;
TripRecordingBottomSheet.showInstance(activity.getSupportFragmentManager());
}
}