Add hierarchy view to downloads
This commit is contained in:
parent
8a72f39f99
commit
175c2bc5dc
1 changed files with 4 additions and 0 deletions
|
@ -750,6 +750,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
|
||||
public DownloadIndexAdapter(Map<String, IndexItem> indexFiles) {
|
||||
this.indexFiles = new LinkedHashMap<String, IndexItem>(indexFiles);
|
||||
list.clear();
|
||||
list.addAll(categorizeIndexItems(indexFiles.values()));
|
||||
getFilter().filter(filterText.getText());
|
||||
}
|
||||
|
@ -763,6 +764,9 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
for(IndexItem i : indexFiles) {
|
||||
this.indexFiles.put(i.getFileName(), i);
|
||||
}
|
||||
list.clear();
|
||||
list.addAll(categorizeIndexItems(indexFiles));
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue