aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
diff options
context:
space:
mode:
authorKiwiStone <Kiwi.Stone@web.de>2013-11-28 01:01:58 +0100
committerKiwiStone <Kiwi.Stone@web.de>2013-11-29 23:23:27 +0100
commit22a2231d2c1f4f4d4197c42b1e33dc6eaba33d65 (patch)
tree8ec0642b2edcffd6bfbf605f9e90a6d0257a8a0a /main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
parenta15ec8969fa9e26c0adaf4d5aefc91b9c7be2d12 (diff)
downloadcgeo-22a2231d2c1f4f4d4197c42b1e33dc6eaba33d65.zip
cgeo-22a2231d2c1f4f4d4197c42b1e33dc6eaba33d65.tar.gz
cgeo-22a2231d2c1f4f4d4197c42b1e33dc6eaba33d65.tar.bz2
fixes #3354 - Position not saved on logbook screen
Diffstat (limited to 'main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java')
-rw-r--r--main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
index 333ef11..55b153b 100644
--- a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
+++ b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
@@ -2,6 +2,7 @@ package cgeo.geocaching.ui;
import cgeo.geocaching.activity.AbstractViewPagerActivity.PageViewCreator;
+import android.os.Bundle;
import android.view.View;
/**
@@ -29,4 +30,22 @@ public abstract class AbstractCachingPageViewCreator<ViewClass extends View> imp
@Override
public abstract ViewClass getDispatchedView();
+
+ /**
+ * Gets the state of the view but returns an empty state if not overridden
+ *
+ * @return empty bundle
+ */
+ @Override
+ public Bundle getViewState() {
+ return new Bundle();
+ }
+
+ /**
+ * Restores the state of the view but just returns if not overridden.
+ */
+ @Override
+ public void setViewState(Bundle state) {
+ return;
+ }
}