From f67eb43600f16dc7f64687d9790417298aa7a709 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 23 Nov 2010 14:46:49 -0800 Subject: docs: fix code snippet error Change-Id: I5d65effce4a88af2cbf990276015ed24200037b5 --- docs/html/guide/topics/fragments/index.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/html/guide/topics/fragments/index.jd b/docs/html/guide/topics/fragments/index.jd index ce10ef7..766146e 100644 --- a/docs/html/guide/topics/fragments/index.jd +++ b/docs/html/guide/topics/fragments/index.jd @@ -399,7 +399,7 @@ in the back stack:

Fragment newFragment = new MyFragment(); FragmentTransaction ft = openFragmentTransaction(); // Replace and add to back stack -ft.replace(newFragment, R.id.myfragment); +ft.replace(R.id.myfragment, newFragment); ft.addToBackStack(null); // Apply changes ft.commit(); -- cgit v1.1