Fixed: removing last item in category does not remove category

This commit is contained in:
Denis 2014-11-17 16:07:09 +02:00
parent d06e883dd1
commit 89c72449d2

View file

@ -806,6 +806,10 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
LocalIndexInfo c = findCategory(i, i.isBackupedData());
if(c != null){
data.get(c).remove(i);
if (data.get(c).size() == 0){
data.remove(c);
category.remove(c);
}
}
}
listAdapter.notifyDataSetChanged();