Fix update color
This commit is contained in:
parent
776d6dda80
commit
8e80767537
1 changed files with 10 additions and 3 deletions
|
@ -148,9 +148,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
|
||||
});
|
||||
|
||||
indexFileNames = ((OsmandApplication)getApplication()).getResourceManager().getIndexFileNames();
|
||||
((OsmandApplication)getApplication()).getResourceManager().getBackupIndexes(indexFileNames);
|
||||
|
||||
updateLoadedFiles();
|
||||
|
||||
filterText = (EditText) findViewById(R.id.search_box);
|
||||
textWatcher = new TextWatcher() {
|
||||
|
@ -193,6 +191,12 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
msg.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void updateLoadedFiles() {
|
||||
indexFileNames = ((OsmandApplication)getApplication()).getResourceManager().getIndexFileNames();
|
||||
((OsmandApplication)getApplication()).getResourceManager().getBackupIndexes(indexFileNames);
|
||||
}
|
||||
|
||||
|
||||
private void downloadIndexList() {
|
||||
|
@ -645,6 +649,7 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
protected void onProgressUpdate(Object... values) {
|
||||
for(Object o : values){
|
||||
if(o instanceof DownloadEntry){
|
||||
updateLoadedFiles();
|
||||
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated();
|
||||
findViewById(R.id.DownloadButton).setVisibility(
|
||||
entriesToDownload.isEmpty() ? View.GONE : View.VISIBLE);
|
||||
|
@ -674,8 +679,10 @@ public class DownloadIndexActivity extends ExpandableListActivity {
|
|||
if(mainView != null){
|
||||
mainView.setKeepScreenOn(false);
|
||||
}
|
||||
updateLoadedFiles();
|
||||
((DownloadIndexAdapter) getExpandableListAdapter()).notifyDataSetInvalidated();
|
||||
tracker.dispatch();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue