Fix making next marker active after disabling group
This commit is contained in:
parent
8234311de2
commit
8280a0ed06
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||||
group.setDisabled(!enabled);
|
group.setDisabled(!enabled);
|
||||||
app.getMapMarkersHelper().updateGroupDisabled(group, !enabled);
|
app.getMapMarkersHelper().updateGroupDisabled(group, !enabled);
|
||||||
populateAdapterWithGroupMarkers(group, headerViewHolder.getAdapterPosition() + 1);
|
populateAdapterWithGroupMarkers(group, headerViewHolder.getAdapterPosition() + 1);
|
||||||
|
updateShowDirectionMarkers();
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
snackbar = Snackbar.make(holder.itemView, app.getString(R.string.group_will_be_removed_after_restart), Snackbar.LENGTH_LONG)
|
snackbar = Snackbar.make(holder.itemView, app.getString(R.string.group_will_be_removed_after_restart), Snackbar.LENGTH_LONG)
|
||||||
|
|
Loading…
Reference in a new issue