aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java
diff options
context:
space:
mode:
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;
+ }
}