Updated code view

This commit is contained in:
Denis 2014-08-06 17:55:05 +03:00
parent a5fed48407
commit 3c90af4fee

View file

@ -119,18 +119,18 @@ public class TourViewActivity extends SherlockFragmentActivity {
@Override
public void onBackPressed() {
if(state == STATE_SELECT_TOUR) {
if (state == STATE_SELECT_TOUR) {
super.onBackPressed();
} else if (state == STATE_TOUR_VIEW) {
SherpafyHtmlFragment fragment = (SherpafyHtmlFragment) getSupportFragmentManager().findFragmentByTag(String.valueOf(STATE_DETAILED_OVERVIEW));
if (fragment != null && fragment.isVisible()){
if (fragment != null && fragment.isVisible()) {
showSelectedItem();
} else {
selectMenu(R.string.sherpafy_tours);
}
} else if (state == STATE_STAGE_OVERVIEW){
} else if (state == STATE_STAGE_OVERVIEW) {
SherpafyStageFragment fragment = (SherpafyStageFragment) getSupportFragmentManager().findFragmentByTag(String.valueOf(state));
if (fragment != null){
if (fragment != null) {
fragment.onBackPressed();
}
}