Remove unnecessary parameter "lastTask"
This commit is contained in:
parent
927ed3c58f
commit
ad47daaadc
2 changed files with 4 additions and 6 deletions
|
@ -138,11 +138,9 @@ public class WikivoyageSearchDialogFragment extends BaseOsmAndDialogFragment imp
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onSearchFinished(@Nullable List<SearchResult> results, boolean lastTask) {
|
||||
public void onSearchFinished(@Nullable List<SearchResult> results) {
|
||||
adapter.setItems(results);
|
||||
if (lastTask) {
|
||||
switchProgressBarVisibility(false);
|
||||
}
|
||||
switchProgressBarVisibility(false);
|
||||
}
|
||||
|
||||
private void switchProgressBarVisibility(boolean show) {
|
||||
|
|
|
@ -55,7 +55,7 @@ public class WikivoyageSearchHelper {
|
|||
|
||||
void onSearchStarted();
|
||||
|
||||
void onSearchFinished(@Nullable List<SearchResult> results, boolean lastTask);
|
||||
void onSearchFinished(@Nullable List<SearchResult> results);
|
||||
}
|
||||
|
||||
private class SearchAsyncTask extends AsyncTask<Void, Void, List<SearchResult>> {
|
||||
|
@ -95,7 +95,7 @@ public class WikivoyageSearchHelper {
|
|||
protected void onPostExecute(List<SearchResult> results) {
|
||||
super.onPostExecute(results);
|
||||
for (SearchListener listener : listeners) {
|
||||
listener.onSearchFinished(results, workQueue.isEmpty());
|
||||
listener.onSearchFinished(results);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue