try fix FC "SearchTransportFragment{42a8c8d8} not attached to Activity" when quickly changing screen orientation on searchTransport screen
This commit is contained in:
parent
3f9f6c08f2
commit
9fdff2d9a7
1 changed files with 3 additions and 0 deletions
|
@ -220,11 +220,14 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
|
|||
}
|
||||
@Override
|
||||
protected void onPostExecute(List<RouteInfoLocation> result) {
|
||||
// isAdded here tries to fix FC when rapidly changing screen orientation
|
||||
if (isAdded()) {
|
||||
stopsAdapter.setNewModel(result);
|
||||
updateSearchMoreButton();
|
||||
searchArea.setText(getSearchArea());
|
||||
progress.setVisibility(View.INVISIBLE);
|
||||
asyncTask = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
asyncTask = current;
|
||||
|
|
Loading…
Reference in a new issue