Hide snackbar after reordering markers
This commit is contained in:
parent
cb81896166
commit
eb89a9791d
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ public class MapMarkersActiveFragment extends Fragment implements OsmAndCompassL
|
||||||
public void onDragEnded(RecyclerView.ViewHolder holder) {
|
public void onDragEnded(RecyclerView.ViewHolder holder) {
|
||||||
toPosition = holder.getAdapterPosition();
|
toPosition = holder.getAdapterPosition();
|
||||||
if (toPosition >= 0 && fromPosition >= 0 && toPosition != fromPosition) {
|
if (toPosition >= 0 && fromPosition >= 0 && toPosition != fromPosition) {
|
||||||
|
hideSnackbar();
|
||||||
mapActivity.getMyApplication().getMapMarkersHelper().changeActiveMarkerPositionInDb(toPosition);
|
mapActivity.getMyApplication().getMapMarkersHelper().changeActiveMarkerPositionInDb(toPosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue