summaryrefslogtreecommitdiff
path: root/android/sdremote/src/org/libreoffice/impressremote/fragment
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-09-10 21:08:50 +0300
committerArtur Dryomov <artur.dryomov@gmail.com>2013-09-11 01:43:53 +0300
commite9d61192574ea7de22beed2644868bfba319ff91 (patch)
tree0152d8c103dc129df0d058d0a88d0d3b47e94d84 /android/sdremote/src/org/libreoffice/impressremote/fragment
parent54433a11e711a440f698c94edcd22379222db1ce (diff)
Remove notes from the landscape layout.
Ignoring tablets at moment. Change-Id: Ie2ac0840cea994e942b2f7e1a7d4a2e73ebd12de
Diffstat (limited to 'android/sdremote/src/org/libreoffice/impressremote/fragment')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java
index f8769f32ae38..f12b3d8ed048 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesPagerFragment.java
@@ -119,6 +119,10 @@ public class SlidesPagerFragment extends SherlockFragment implements ServiceConn
}
private void setUpSlideNotes(int aSlideIndex) {
+ if (!isSlideNotesLayoutAvailable()) {
+ return;
+ }
+
if (areSlideNotesAvailable(aSlideIndex)) {
showSlideNotes(aSlideIndex);
}
@@ -127,6 +131,12 @@ public class SlidesPagerFragment extends SherlockFragment implements ServiceConn
}
}
+ private boolean isSlideNotesLayoutAvailable() {
+ ViewGroup aSlideNotesLayout = (ViewGroup) getView().findViewById(R.id.layout_notes);
+
+ return aSlideNotesLayout != null;
+ }
+
private boolean areSlideNotesAvailable(int aSlideIndex) {
String aSlideNotes = mCommunicationService.getSlideShow().getSlideNotes(aSlideIndex);