From f377b8749df9e163acf420db694131fa583d7e2b Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 12 Nov 2015 12:05:15 +0200 Subject: [PATCH] Removed unused task --- .../plus/osmedit/AdvancedEditPoiFragment.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java index a039c67b39..fa24292d4f 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedEditPoiFragment.java @@ -52,7 +52,6 @@ public class AdvancedEditPoiFragment extends Fragment private TextView nameTextView; private TextView amenityTagTextView; private TextView amenityTextView; - private Map allTranslatedSubTypes; @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { @@ -81,12 +80,9 @@ public class AdvancedEditPoiFragment extends Fragment (LinearLayout) view.findViewById(R.id.editTagsList); final MapPoiTypes mapPoiTypes = ((OsmandApplication) getActivity().getApplication()).getPoiTypes(); - // TODO: 10/27/15 Probably use executor so loading would be paralleled. - new InitTranslatedTypesTask(mapPoiTypes).execute(); mAdapter = new TagAdapterLinearLayoutHack(editTagsLineaLayout, getData()); // 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); addTagButton.setOnClickListener(new View.OnClickListener() { @Override @@ -358,23 +354,4 @@ public class AdvancedEditPoiFragment extends Fragment mAdapter.setValueData(valueKeys.toArray(new String[valueKeys.size()])); } } - - class InitTranslatedTypesTask extends AsyncTask> { - private final MapPoiTypes mapPoiTypes; - - public InitTranslatedTypesTask(MapPoiTypes mapPoiTypes) { - this.mapPoiTypes = mapPoiTypes; - } - - @Override - protected Map doInBackground(Void... params) { - return mapPoiTypes.getAllTranslatedNames(true); - } - - @Override - protected void onPostExecute(Map result) { - allTranslatedSubTypes = result; - } - - } }