summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2010-11-23 14:46:49 -0800
committerScott Main <smain@google.com>2010-11-23 14:46:49 -0800
commitf67eb43600f16dc7f64687d9790417298aa7a709 (patch)
tree979d37a19303c1b1b106906f19500269f523ae6e /docs
parent07cb89432cf1687ba4f903f56bc1d92979d2cd4a (diff)
downloadframeworks_base-f67eb43600f16dc7f64687d9790417298aa7a709.zip
frameworks_base-f67eb43600f16dc7f64687d9790417298aa7a709.tar.gz
frameworks_base-f67eb43600f16dc7f64687d9790417298aa7a709.tar.bz2
docs: fix code snippet error
Change-Id: I5d65effce4a88af2cbf990276015ed24200037b5
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/topics/fragments/index.jd2
1 files changed, 1 insertions, 1 deletions
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:</p>
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();