Fixed: removing last item in category does not remove category
This commit is contained in:
parent
d06e883dd1
commit
89c72449d2
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue