try moving fix to MainMenuActivity

This commit is contained in:
sonora 2015-01-01 11:26:28 +01:00
parent 365de22bdb
commit eb1810724d
2 changed files with 10 additions and 4 deletions

View file

@ -176,6 +176,11 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
getLocationProvider().registerOrUnregisterCompassListener(true);
// getLocationProvider().resumeAllUpdates();
}
View view = getView();
if (view != null) {
view.invalidate();
}
}
@Override

View file

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