From 11e6f7f9644e49487dc02c695c47895cd208ee63 Mon Sep 17 00:00:00 2001 From: Maxime Biais Date: Thu, 12 Feb 2015 16:30:03 +0100 Subject: [PATCH] use setFeaturedImageSupported instead of using WordPress.getCurrentBlog().isFeaturedImageCapable() --- .../wordpress/android/editor/EditorFragmentAbstract.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragmentAbstract.java b/WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragmentAbstract.java index a1a3303ddd2e..0c54647942e7 100644 --- a/WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragmentAbstract.java +++ b/WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragmentAbstract.java @@ -5,7 +5,6 @@ import com.android.volley.toolbox.ImageLoader; -import org.wordpress.android.util.ImageUtils; import org.wordpress.android.util.helpers.MediaFile; public abstract class EditorFragmentAbstract extends Fragment { @@ -17,6 +16,7 @@ public abstract class EditorFragmentAbstract extends Fragment { public abstract void createLinkFromSelection(String link, String text); protected EditorFragmentListener mEditorFragmentListener; + protected boolean mFeaturedImageSupported; @Override public void onAttach(Activity activity) { @@ -28,6 +28,10 @@ public void onAttach(Activity activity) { } } + public void setFeaturedImageSupported(boolean featuredImageSupported) { + mFeaturedImageSupported = featuredImageSupported; + } + /** * Called by the activity when back button is pressed. */ @@ -44,6 +48,9 @@ public void setLocalDraft(boolean isLocalDraft) { // Not unused in the new editor } + /** + * Callbacks to communicate with the parent Activity + */ public interface EditorFragmentListener { public void onEditorFragmentInitialized(); public void onSettingsClicked();