diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java index 77977d6c3e..b6d922414b 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoriteFragment.java @@ -37,9 +37,9 @@ public class SherpafyFavoriteFragment extends SherpafyStageInfoFragment { int k = args.getInt(FAV_PARAM); if (stage != null) { fav = (StageFavorite) stage.getFavorites().get(k); - if (getSherlockActivity().getSupportActionBar() != null) { - getSherlockActivity().getSupportActionBar().setTitle(fav.getName()); - } +// if (getSherlockActivity().getSupportActionBar() != null) { +// getSherlockActivity().getSupportActionBar().setTitle(fav.getName()); +// } } } diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoritesListFragment.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoritesListFragment.java index 0538b51c8d..6d28a1d688 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyFavoritesListFragment.java @@ -59,9 +59,9 @@ public class SherpafyFavoritesListFragment extends SherlockListFragment { @Override public void onResume() { super.onResume(); - if(tour != null) { - getSherlockActivity().getSupportActionBar().setTitle(tour.getName()); - } +// if(tour != null) { +// getSherlockActivity().getSupportActionBar().setTitle(tour.getName()); +// } } @Override diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageFragment.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageFragment.java index 3c1f7c23fa..bfba6c89f2 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageFragment.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageFragment.java @@ -62,7 +62,9 @@ public class SherpafyStageFragment extends SherlockFragment { if(tour != null && tour.getStageInformation().size() > k) { stage = tour.getStageInformation().get(k); } - getSherlockActivity().getSupportActionBar().setTitle(getString(R.string.tab_stage) + " " + (k+1)); + if (stage != null){ + getSherlockActivity().getSupportActionBar().setTitle(stage.getName()); + } }