diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java index 3d95ce7375..8989d1b344 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java @@ -220,11 +220,14 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA } @Override protected void onPostExecute(List 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;