Skip to content

Commit

Permalink
use setFeaturedImageSupported instead of using WordPress.getCurrentBl…
Browse files Browse the repository at this point in the history
…og().isFeaturedImageCapable()
  • Loading branch information
maxme committed Feb 12, 2015
1 parent fb3a66d commit 11e6f7f
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand All @@ -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.
*/
Expand All @@ -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();
Expand Down

0 comments on commit 11e6f7f

Please sign in to comment.