diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-02-07 11:37:49 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-02-07 10:53:16 +0000 |
commit | a5acd33bc54cbc00f2194c923641fbd0ab45d801 (patch) | |
tree | 78af3e8316509d2ef0be87998efeb719f60b7dbc /android | |
parent | 6644caf9048495ddb6174d7ec30daa7e20e2828e (diff) |
sdremote - always replace fragments, to avoid stale content
With Change-Id I7cb1cf29bcae59ef26cf3bf0c2b3dd028eb8f878, this code
gets run on every onCreate, thus adding activities on top of
existing ones. Seems FragmentManager lifetime is a bit decoupled
from Activity
Change-Id: Icc1dc86ef91257ce734ee00fed83e909ddf52dc8
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java index eb992f17d7d9..9de25ed7b0f5 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java @@ -78,8 +78,8 @@ public class PresentationActivity extends SherlockFragmentActivity { FragmentTransaction fragmentTransaction = fragmentManager .beginTransaction(); - fragmentTransaction.add(R.id.presentation_interceptor, - mPresentationFragment, "fragment_presentation"); + fragmentTransaction.replace(R.id.presentation_interceptor, + mPresentationFragment, "fragment_presentation"); fragmentTransaction.commit(); mOuterLayout = (FrameLayout) findViewById(R.id.framelayout); } |