removed OsmandApplication from constructor
This commit is contained in:
parent
e75dfc58e8
commit
db675f5166
2 changed files with 4 additions and 4 deletions
|
@ -133,7 +133,7 @@ public class ExploreTabFragment extends BaseOsmAndFragment implements DownloadIn
|
|||
}
|
||||
}
|
||||
}
|
||||
items.add(new StartEditingTravelCard(app, getContext(), nightMode));
|
||||
items.add(new StartEditingTravelCard(getContext(), nightMode));
|
||||
adapter.setItems(items);
|
||||
|
||||
final DownloadIndexesThread downloadThread = app.getDownloadThread();
|
||||
|
|
|
@ -10,8 +10,8 @@ import android.view.View;
|
|||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import net.osmand.plus.OsmandApplication;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.activities.MapActivity;
|
||||
|
||||
public class StartEditingTravelCard extends BaseTravelCard {
|
||||
|
||||
|
@ -19,8 +19,8 @@ public class StartEditingTravelCard extends BaseTravelCard {
|
|||
|
||||
private Context context;
|
||||
|
||||
public StartEditingTravelCard(OsmandApplication app, Context context, boolean nightMode) {
|
||||
super(app, nightMode);
|
||||
public StartEditingTravelCard(Context context, boolean nightMode) {
|
||||
super(((MapActivity) context).getMyApplication(), nightMode);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue