diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index 1fe28d33ab..2317c74981 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -40,6 +40,7 @@ import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.TrackActivity; import net.osmand.plus.activities.TrackActivity.NewGpxLine; import net.osmand.plus.helpers.AndroidUiHelper; +import net.osmand.plus.measurementtool.adapter.MeasurementToolAdapter; import net.osmand.plus.measurementtool.command.AddPointCommand; import net.osmand.plus.measurementtool.command.CommandManager; import net.osmand.plus.measurementtool.command.RemovePointCommand; diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolAdapter.java b/OsmAnd/src/net/osmand/plus/measurementtool/adapter/MeasurementToolAdapter.java similarity index 82% rename from OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolAdapter.java rename to OsmAnd/src/net/osmand/plus/measurementtool/adapter/MeasurementToolAdapter.java index dfa2551c21..578b118c46 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolAdapter.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/adapter/MeasurementToolAdapter.java @@ -1,4 +1,4 @@ -package net.osmand.plus.measurementtool; +package net.osmand.plus.measurementtool.adapter; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; @@ -17,23 +17,23 @@ import net.osmand.util.MapUtils; import java.util.List; -class MeasurementToolAdapter extends RecyclerView.Adapter { +public class MeasurementToolAdapter extends RecyclerView.Adapter { private final MapActivity mapActivity; private final List points; private MeasurementAdapterListener adapterListener; - MeasurementToolAdapter(MapActivity mapActivity, List points) { + public MeasurementToolAdapter(MapActivity mapActivity, List points) { this.mapActivity = mapActivity; this.points = points; } - void setAdapterListener(MeasurementAdapterListener listener) { + public void setAdapterListener(MeasurementAdapterListener listener) { this.adapterListener = listener; } @Override - public Holder onCreateViewHolder(ViewGroup viewGroup, int i) { + public MeasureToolItemVH onCreateViewHolder(ViewGroup viewGroup, int i) { View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.measure_points_list_item, viewGroup, false); final boolean nightMode = mapActivity.getMyApplication().getDaynightHelper().isNightModeForMapControls(); if (!nightMode) { @@ -45,11 +45,11 @@ class MeasurementToolAdapter extends RecyclerView.Adapter