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) {
|
||||
runnable.run();
|
||||
} else {
|
||||
TripRecordingBottomSheet.showInstance(mapActivity.getSupportFragmentManager());
|
||||
} else if (map instanceof FragmentActivity) {
|
||||
FragmentActivity activity = (FragmentActivity) map;
|
||||
TripRecordingBottomSheet.showInstance(activity.getSupportFragmentManager());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue