OSDN Git Service

Doc fix: update Displaying Bitmaps training class code snippet
authorAdam Koch <akoch@google.com>
Fri, 25 Oct 2013 14:14:55 +0000 (10:14 -0400)
committerAdam Koch <akoch@google.com>
Fri, 25 Oct 2013 14:14:55 +0000 (10:14 -0400)
Bug: 11372790

Change-Id: Ifb484b03ac4085eeccadb1602dace37690dc2d6b

docs/html/training/displaying-bitmaps/cache-bitmap.jd

index 25efe1e..ad084c2 100644 (file)
@@ -346,6 +346,7 @@ class RetainFragment extends Fragment {
         RetainFragment fragment = (RetainFragment) fm.findFragmentByTag(TAG);
         if (fragment == null) {
             fragment = new RetainFragment();
+            fm.beginTransaction().add(fragment, TAG).commit();
         }
         return fragment;
     }