Commit 3c16ec88 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bugs in FragmentLayoutSupport sample in Support4Demos

Change-Id: I6b2828f8f6510e34cc11c3dc24b5022b241bd542
parent a6b4e7e3
......@@ -152,14 +152,10 @@ public class FragmentLayoutSupport extends FragmentActivity {
// Execute a transaction, replacing any existing fragment
// with this one inside the frame.
FragmentTransaction ft = getFragmentManager().beginTransaction();
if (index == 0) {
ft.replace(R.id.details, details);
} else {
ft.replace(R.id.a_item, details);
}
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.commit();
getFragmentManager().beginTransaction()
.replace(R.id.details, details)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
.commit();
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment