summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-02-07 11:37:49 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-02-07 11:41:24 +0100
commit12f2baa316ce283020ea200836c7bb587c3d577f (patch)
tree916f79b1093072c3d6f5d8c00f9d338252069071
parentaf29c96b049fa313bdc80de618e9acb127882400 (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
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java4
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);
}