This commit is contained in:
parent
791ffaf53b
commit
f95a34f335
1 changed files with 11 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue