diff --git a/OsmAnd/src/net/osmand/plus/audionotes/adapters/NotesAdapter.java b/OsmAnd/src/net/osmand/plus/audionotes/adapters/NotesAdapter.java index 69f7866aa2..622eccfd6e 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/adapters/NotesAdapter.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/adapters/NotesAdapter.java @@ -125,7 +125,7 @@ public class NotesAdapter extends ArrayAdapter { holder.icon.setImageDrawable(app.getIconsCache().getIcon(iconRes, colorRes)); } - holder.bottomDivider.setVisibility(View.VISIBLE); + holder.bottomDivider.setVisibility(hideBottomDivider(position) ? View.GONE : View.VISIBLE); holder.icon.setVisibility(selectionMode ? View.GONE : View.VISIBLE); holder.checkBox.setVisibility(selectionMode ? View.VISIBLE : View.GONE); holder.options.setVisibility(selectionMode ? View.GONE : View.VISIBLE); @@ -183,6 +183,10 @@ public class NotesAdapter extends ArrayAdapter { return TYPE_COUNT; } + private boolean hideBottomDivider(int pos) { + return pos == getCount() - 1 || !(getItem(pos + 1) instanceof Recording); + } + private boolean isSelectAllChecked() { for (int i = 0; i < getCount(); i++) { Object item = getItem(i);