Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b8482c3c85
1 changed files with 3 additions and 0 deletions
|
@ -220,12 +220,15 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(List<RouteInfoLocation> result) {
|
protected void onPostExecute(List<RouteInfoLocation> result) {
|
||||||
|
// isAdded here tries to fix FC when rapidly changing screen orientation
|
||||||
|
if (isAdded()) {
|
||||||
stopsAdapter.setNewModel(result);
|
stopsAdapter.setNewModel(result);
|
||||||
updateSearchMoreButton();
|
updateSearchMoreButton();
|
||||||
searchArea.setText(getSearchArea());
|
searchArea.setText(getSearchArea());
|
||||||
progress.setVisibility(View.INVISIBLE);
|
progress.setVisibility(View.INVISIBLE);
|
||||||
asyncTask = null;
|
asyncTask = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
asyncTask = current;
|
asyncTask = current;
|
||||||
current.execute(rs.toArray(new TransportIndexRepository[rs.size()]));
|
current.execute(rs.toArray(new TransportIndexRepository[rs.size()]));
|
||||||
|
|
Loading…
Reference in a new issue