summaryrefslogtreecommitdiff
path: root/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java22
1 files changed, 17 insertions, 5 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java b/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java
index 19963686b09d..99947f5c18c5 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java
@@ -12,6 +12,8 @@ import android.util.SparseArray;
public class SlideShow {
+ private boolean mRunning;
+
private int mSlidesCount;
private int mCurrentSlideIndex;
@@ -21,13 +23,23 @@ public class SlideShow {
private final Timer mTimer;
public SlideShow(Timer aTimer) {
- this.mSlidesCount = 0;
- this.mCurrentSlideIndex = 0;
+ mRunning = false;
+
+ mSlidesCount = 0;
+ mCurrentSlideIndex = 0;
+
+ mSlidePreviewsBytes = new SparseArray<byte[]>();
+ mSlideNotes = new SparseArray<String>();
- this.mSlidePreviewsBytes = new SparseArray<byte[]>();
- this.mSlideNotes = new SparseArray<String>();
+ mTimer = aTimer;
+ }
+
+ public void setRunning(boolean aRunning) {
+ mRunning = aRunning;
+ }
- this.mTimer = aTimer;
+ public boolean isRunning() {
+ return mRunning;
}
public void setSlidesCount(int aSlidesCount) {