am 3c16ec88: Fix bugs in FragmentLayoutSupport sample in Support4Demos

* commit '3c16ec88559377128adffbc9748c23de79d7adb5':
  Fix bugs in FragmentLayoutSupport sample in Support4Demos
This commit is contained in:
Adam Powell
2013-08-12 13:59:09 -07:00
committed by Android Git Automerger

View File

@@ -152,14 +152,10 @@ public class FragmentLayoutSupport extends FragmentActivity {
// Execute a transaction, replacing any existing fragment // Execute a transaction, replacing any existing fragment
// with this one inside the frame. // with this one inside the frame.
FragmentTransaction ft = getFragmentManager().beginTransaction(); getFragmentManager().beginTransaction()
if (index == 0) { .replace(R.id.details, details)
ft.replace(R.id.details, details); .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
} else { .commit();
ft.replace(R.id.a_item, details);
}
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.commit();
} }
} else { } else {