change CoordinateInputAdapter constant and improve getting args in SaveAsTrackBottomSheetDialogFragment
This commit is contained in:
parent
b42f00554a
commit
493b8c35de
2 changed files with 4 additions and 3 deletions
|
@ -49,8 +49,9 @@ public class SaveAsTrackBottomSheetDialogFragment extends BottomSheetDialogFragm
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
boolean isCoordInput = false;
|
boolean isCoordInput = false;
|
||||||
int number = 0;
|
int number = 0;
|
||||||
if (getArguments() != null) {
|
Bundle args = getArguments();
|
||||||
number = getArguments().getInt(ADDED_MARKERS_NUMBER_KEY);
|
if (args != null) {
|
||||||
|
number = args.getInt(ADDED_MARKERS_NUMBER_KEY);
|
||||||
if (number != 0)
|
if (number != 0)
|
||||||
isCoordInput = true;
|
isCoordInput = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class CoordinateInputAdapter extends RecyclerView.Adapter<MapMarkerItemViewHolder> {
|
public class CoordinateInputAdapter extends RecyclerView.Adapter<MapMarkerItemViewHolder> {
|
||||||
|
|
||||||
public static final String ADAPTER_POSITION = "position";
|
public static final String ADAPTER_POSITION = "adapter_position";
|
||||||
|
|
||||||
private OsmandApplication app;
|
private OsmandApplication app;
|
||||||
private List<MapMarker> mapMarkers;
|
private List<MapMarker> mapMarkers;
|
||||||
|
|
Loading…
Reference in a new issue