summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java
index 5256f98cd40d..eb992f17d7d9 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java
@@ -71,18 +71,16 @@ public class PresentationActivity extends SherlockFragmentActivity {
//((FrameLayout) findViewById(R.id.framelayout)).addView(mLayout);
setContentView(R.layout.activity_presentation);
- if (savedInstanceState == null) {
- mPresentationFragment = new PresentationFragment();
+ mPresentationFragment = new PresentationFragment();
- FragmentManager fragmentManager = getSupportFragmentManager();
+ FragmentManager fragmentManager = getSupportFragmentManager();
- FragmentTransaction fragmentTransaction = fragmentManager
- .beginTransaction();
- fragmentTransaction.add(R.id.presentation_interceptor,
- mPresentationFragment, "fragment_presentation");
- fragmentTransaction.commit();
- }
+ FragmentTransaction fragmentTransaction = fragmentManager
+ .beginTransaction();
+ fragmentTransaction.add(R.id.presentation_interceptor,
+ mPresentationFragment, "fragment_presentation");
+ fragmentTransaction.commit();
mOuterLayout = (FrameLayout) findViewById(R.id.framelayout);
}