Fix issue 845

This commit is contained in:
Victor Shcherb 2012-02-05 15:47:07 +01:00
parent 6f0b029b96
commit 31aa4d3ec4

View file

@ -643,7 +643,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
protected void onProgressUpdate(Object... values) { protected void onProgressUpdate(Object... values) {
for(Object o : values){ for(Object o : values){
if(o instanceof DownloadEntry){ if(o instanceof DownloadEntry){
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetChanged(); ((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated();
findViewById(R.id.DownloadButton).setVisibility( findViewById(R.id.DownloadButton).setVisibility(
entriesToDownload.isEmpty() ? View.GONE : View.VISIBLE); entriesToDownload.isEmpty() ? View.GONE : View.VISIBLE);
} else if(o instanceof String) { } else if(o instanceof String) {
@ -672,6 +672,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
if(mainView != null){ if(mainView != null){
mainView.setKeepScreenOn(false); mainView.setKeepScreenOn(false);
} }
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated();
tracker.dispatch(); tracker.dispatch();
} }