Reload indexes properly
This commit is contained in:
parent
6c7fdd1b72
commit
199220d5e5
1 changed files with 3 additions and 2 deletions
|
@ -392,8 +392,6 @@ public class LocalIndexesActivity extends ExpandableListActivity {
|
||||||
findViewById(R.id.ProgressBar).setVisibility(View.GONE);
|
findViewById(R.id.ProgressBar).setVisibility(View.GONE);
|
||||||
Toast.makeText(LocalIndexesActivity.this, result, Toast.LENGTH_LONG).show();
|
Toast.makeText(LocalIndexesActivity.this, result, Toast.LENGTH_LONG).show();
|
||||||
listAdapter.clear();
|
listAdapter.clear();
|
||||||
asyncLoader = new LoadLocalIndexTask();
|
|
||||||
asyncLoader.execute(LocalIndexesActivity.this);
|
|
||||||
reloadIndexes();
|
reloadIndexes();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -686,6 +684,8 @@ public class LocalIndexesActivity extends ExpandableListActivity {
|
||||||
|
|
||||||
|
|
||||||
public void reloadIndexes() {
|
public void reloadIndexes() {
|
||||||
|
listAdapter.clear();
|
||||||
|
asyncLoader = new LoadLocalIndexTask();
|
||||||
AsyncTask<Void, String, List<String>> task = new AsyncTask<Void, String, List<String>>(){
|
AsyncTask<Void, String, List<String>> task = new AsyncTask<Void, String, List<String>>(){
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -704,6 +704,7 @@ public class LocalIndexesActivity extends ExpandableListActivity {
|
||||||
}
|
}
|
||||||
Toast.makeText(LocalIndexesActivity.this, b.toString(), Toast.LENGTH_LONG).show();
|
Toast.makeText(LocalIndexesActivity.this, b.toString(), Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
|
asyncLoader.execute(LocalIndexesActivity.this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue