diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java
new file mode 100644
index 0000000000..3949608194
--- /dev/null
+++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java
@@ -0,0 +1,64 @@
+package net.osmand.plus.sherpafy;
+
+import com.actionbarsherlock.view.Menu;
+import com.actionbarsherlock.view.MenuInflater;
+import com.actionbarsherlock.view.MenuItem;
+
+import net.osmand.plus.R;
+import net.osmand.plus.sherpafy.TourInformation.StageFavorite;
+import android.app.Activity;
+import android.view.View;
+import android.webkit.WebView;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+public class SherpafyFavoriteFragment extends SherpafyStageInfoFragment {
+ private static final int SHOW_ON_MAP = 10;
+ public static final String FAV_PARAM = null;
+ private StageFavorite fav;
+
+ @Override
+ public void onAttach(Activity activity) {
+ super.onAttach(activity);
+ int k = getArguments().getInt(FAV_PARAM);
+ if(stage != null) {
+ fav = (StageFavorite) stage.getFavorites().get(k);
+ getSherlockActivity().getSupportActionBar().setTitle(fav.getName());
+ }
+ }
+
+ protected void updateView(WebView description, ImageView icon, TextView additional, TextView text, TextView header) {
+ if (fav.getImage() != null) {
+ icon.setImageBitmap(fav.getImage());
+ } else {
+ icon.setVisibility(View.GONE);
+ }
+ additional.setVisibility(View.GONE);
+ header.setText(fav.getName());
+ text.setText(fav.getShortDescription());
+ description.loadData("
" + fav.getFullDescription() + " k) {
+ stage = tour.getStageInformation().get(k);
+ }
+ setHasOptionsMenu(true);
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ if(tour != null) {
+ getSherlockActivity().getSupportActionBar().setTitle(tour.getName());
+ }
+ }
+
+ @Override
+ public void onListItemClick(ListView l, View v, int position, long id) {
+ Object item = getListAdapter().getItem(position);
+ if (item instanceof StageFavorite) {
+ ((TourViewActivity) getSherlockActivity()).showFavoriteFragment(stage, (StageFavorite) item);
+ }
+ }
+
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ if (item.getItemId() == android.R.id.home) {
+ ((TourViewActivity) getSherlockActivity()).showSelectedItem();
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View v = super.onCreateView(inflater, container, savedInstanceState);
+ imageView = new ImageView(getActivity());
+ imageView.setLayoutParams(new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
+ imageView.setScaleType(ScaleType.CENTER_CROP);
+ return v;
+ }
+
+ @Override
+ public void onActivityCreated(Bundle savedInstanceState) {
+ super.onActivityCreated(savedInstanceState);
+ favAdapter = new FavoriteAdapter(stage.getFavorites());
+ setListAdapter(favAdapter);
+ }
+
+ @Override
+ public void onDestroyView() {
+ super.onDestroyView();
+ setListAdapter(null);
+ }
+
+ class FavoriteAdapter extends ArrayAdapter