From 91ba848d073e434e68270936b90235b9d2d24d37 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 30 Dec 2014 10:10:31 +0100 Subject: [PATCH] document fix for "is no Attached" FC --- .../activities/search/SearchTransportFragment.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java index 8989d1b344..c24f99f194 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java @@ -220,13 +220,13 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA } @Override protected void onPostExecute(List 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(); - searchArea.setText(getSearchArea()); - progress.setVisibility(View.INVISIBLE); - asyncTask = null; + stopsAdapter.setNewModel(result); + updateSearchMoreButton(); + searchArea.setText(getSearchArea()); + progress.setVisibility(View.INVISIBLE); + asyncTask = null; } } };