public void onTabReselected(Tab tab, FragmentTransaction ft) {
   if (fragment.getClass().toString().equalsIgnoreCase(EmergencyFragment.class.toString())) {
     FragmentManager fm = getSupportFragmentManager();
     DialogoFinder finder = new DialogoFinder();
     Log.i("TabListener", "Antes del show");
     finder.show(fm, "dialog1");
     Log.i("TabListener", "Despues del show");
     return;
   }
 }
 public void onTabSelected(Tab tab, FragmentTransaction ft) {
   Log.i("TabListener", "Es un tab select");
   if (fragment.getClass().toString().equalsIgnoreCase(EmergencyFragment.class.toString())) {
     FragmentManager fm = getSupportFragmentManager();
     DialogoFinder finder = new DialogoFinder();
     finder.show(fm, "dialog1");
     return;
   }
   selected = fragment;
   ft.replace(android.R.id.content, fragment, tag);
 }