Rename argument
This commit is contained in:
parent
1f593c9726
commit
3180688607
1 changed files with 3 additions and 3 deletions
|
@ -1383,7 +1383,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
return mapLayers;
|
return mapLayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void launchMapActivityMoveToTop(Context activity, String openMarkersAction) {
|
public static void launchMapActivityMoveToTop(Context activity, String intentExtraActionName) {
|
||||||
if (activity instanceof MapActivity) {
|
if (activity instanceof MapActivity) {
|
||||||
if (((MapActivity) activity).getDashboard().isVisible()) {
|
if (((MapActivity) activity).getDashboard().isVisible()) {
|
||||||
((MapActivity) activity).getDashboard().hideDashboard();
|
((MapActivity) activity).getDashboard().hideDashboard();
|
||||||
|
@ -1405,8 +1405,8 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
Intent newIntent = new Intent(activity, ((OsmandApplication) activity.getApplicationContext())
|
Intent newIntent = new Intent(activity, ((OsmandApplication) activity.getApplicationContext())
|
||||||
.getAppCustomization().getMapActivity());
|
.getAppCustomization().getMapActivity());
|
||||||
newIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
newIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
if (openMarkersAction != null) {
|
if (intentExtraActionName != null) {
|
||||||
newIntent.putExtra(openMarkersAction, true);
|
newIntent.putExtra(intentExtraActionName, true);
|
||||||
}
|
}
|
||||||
activity.startActivity(newIntent);
|
activity.startActivity(newIntent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue