From 341e22d88cd3086f1a8c7483576878be40a467b2 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 11 Nov 2015 17:14:41 +0100 Subject: [PATCH] Chnage title --- .../net/osmand/plus/osmedit/AdvancedEditPoiFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java index 1ab07e4123..b90a9037e8 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java @@ -84,7 +84,7 @@ public class AdvancedEditPoiFragment extends Fragment // TODO: 10/27/15 Probably use executor so loading would be paralleled. new InitTranslatedTypesTask(mapPoiTypes).execute(); mAdapter = new TagAdapterLinearLayoutHack(editTagsLineaLayout, getData()); - // TODO do not restart initialization every time, and probably move initialization to appInit + // It is possible to not restart initialization every time, and probably move initialization to appInit new InitTagsAndValuesAutocompleteTask(mapPoiTypes).execute(); // setListViewHeightBasedOnChildren(editTagsLineaLayout); Button addTagButton = (Button) view.findViewById(R.id.addTagButton); @@ -146,7 +146,9 @@ public class AdvancedEditPoiFragment extends Fragment @Override public void onFragmentActivated() { - mAdapter.updateViews(); + if(mAdapter != null) { + mAdapter.updateViews(); + } } public class TagAdapterLinearLayoutHack {