Alexey Kulish 2016-02-20 18:18:11 +03:00
parent 791ffaf53b
commit f95a34f335

View file

@ -1037,8 +1037,17 @@ public class MapActivity extends AccessibleActivity implements DownloadEvents,
} }
((MapActivity) activity).readLocationToShow(); ((MapActivity) activity).readLocationToShow();
} else { } else {
prevActivityIntent = new Intent(((Activity) activity).getIntent()); if (activity instanceof Activity) {
prevActivityIntent.putExtra(INTENT_KEY_PARENT_MAP_ACTIVITY, true); Intent intent = ((Activity) activity).getIntent();
if (intent != null) {
prevActivityIntent = new Intent(intent);
prevActivityIntent.putExtra(INTENT_KEY_PARENT_MAP_ACTIVITY, true);
} else {
prevActivityIntent = null;
}
} else {
prevActivityIntent = null;
}
Intent newIntent = new Intent(activity, ((OsmandApplication) activity.getApplicationContext()) Intent newIntent = new Intent(activity, ((OsmandApplication) activity.getApplicationContext())
.getAppCustomization().getMapActivity()); .getAppCustomization().getMapActivity());