Final fix for "list are empty when returning to the Dashboard" issue

This commit is contained in:
sonora 2015-01-01 12:01:57 +01:00
parent bd7f2f7df6
commit 402e69d8df
2 changed files with 1 additions and 7 deletions

View file

@ -16,7 +16,7 @@ public class DashBaseFragment extends SherlockFragment {
@Override
public void onResume() {
super.onResume();
//Test if this works
//This fixes the "list are empty when returning to the Dashboard" issue
View view = getView();
if (view != null) {
view.invalidate();

View file

@ -69,12 +69,6 @@ public class DashUpdatesFragment extends DashBaseFragment {
cancelButton = null;
}
updatedDownloadsList(BaseDownloadActivity.downloadListIndexThread.getItemsToUpdate());
//This seems to fix the "list are empty when returning to Dashboard" issue, but should probably be called more globally in MainMenuActivity or DashBaseFragment?
//View view = getView();
//if (view != null) {
// view.invalidate();
//}
}
public void updatedDownloadsList(List<IndexItem> list) {