diff options
Diffstat (limited to 'docs/html/training/displaying-bitmaps/cache-bitmap.jd')
-rw-r--r-- | docs/html/training/displaying-bitmaps/cache-bitmap.jd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/html/training/displaying-bitmaps/cache-bitmap.jd b/docs/html/training/displaying-bitmaps/cache-bitmap.jd index 25efe1e..ad084c2 100644 --- a/docs/html/training/displaying-bitmaps/cache-bitmap.jd +++ b/docs/html/training/displaying-bitmaps/cache-bitmap.jd @@ -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; } |