From 22a2231d2c1f4f4d4197c42b1e33dc6eaba33d65 Mon Sep 17 00:00:00 2001 From: KiwiStone Date: Thu, 28 Nov 2013 01:01:58 +0100 Subject: fixes #3354 - Position not saved on logbook screen --- .../geocaching/ui/AbstractCachingPageViewCreator.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java') 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 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; + } } -- cgit v1.1