diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-06-29 16:14:25 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-06-29 16:14:25 +0200 |
| commit | 9f39b088e3d15622e06c9c075ffd52bb128afc9d (patch) | |
| tree | 08a3f14d5b125ea7515c170e0723ad24ec842102 /main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java | |
| parent | 14a6f46b170c2e37835c478b05c05acea87607a1 (diff) | |
| download | cgeo-9f39b088e3d15622e06c9c075ffd52bb128afc9d.zip cgeo-9f39b088e3d15622e06c9c075ffd52bb128afc9d.tar.gz cgeo-9f39b088e3d15622e06c9c075ffd52bb128afc9d.tar.bz2 | |
fix lint warning: layout inflation root
Diffstat (limited to 'main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java index 71cd3b4..306c686 100644 --- a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java +++ b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java @@ -3,11 +3,13 @@ package cgeo.geocaching.ui; import cgeo.geocaching.activity.AbstractViewPagerActivity.PageViewCreator; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import android.os.Bundle; import android.view.View; +import android.view.ViewGroup; /** * View creator which destroys the created view on every {@link #notifyDataSetChanged()}. @@ -24,9 +26,9 @@ public abstract class AbstractCachingPageViewCreator<ViewClass extends View> imp } @Override - public final View getView() { + public final View getView(final ViewGroup parentView) { if (view == null) { - view = getDispatchedView(); + view = getDispatchedView(parentView); } return view; @@ -34,7 +36,7 @@ public abstract class AbstractCachingPageViewCreator<ViewClass extends View> imp @Override @SuppressFBWarnings("USM_USELESS_ABSTRACT_METHOD") - public abstract ViewClass getDispatchedView(); + public abstract ViewClass getDispatchedView(final ViewGroup parentView); /** * Gets the state of the view but returns an empty state if not overridden @@ -51,6 +53,6 @@ public abstract class AbstractCachingPageViewCreator<ViewClass extends View> imp * Restores the state of the view but just returns if not overridden. */ @Override - public void setViewState(@NonNull Bundle state) { + public void setViewState(@NonNull final Bundle state) { } } |
