try moving fix to MainMenuActivity
This commit is contained in:
parent
365de22bdb
commit
eb1810724d
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue