Updated code view
This commit is contained in:
parent
a5fed48407
commit
3c90af4fee
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue