document fix for "is no Attached" FC
This commit is contained in:
parent
40fa9e00fe
commit
91ba848d07
1 changed files with 6 additions and 6 deletions
|
@ -220,7 +220,7 @@ 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
|
||||
// isAdded() here fixes the "not attached to Activity" FC when rapidly changing screen orientation
|
||||
if (isAdded()) {
|
||||
stopsAdapter.setNewModel(result);
|
||||
updateSearchMoreButton();
|
||||
|
|
Loading…
Reference in a new issue