Skip to content

Commit

Permalink
MLP Android GlueCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Jul 20, 2020
1 parent 771e557 commit f969953
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public class WPAndroidGlueCode {
public static final String PROP_NAME_CAPABILITIES_UNSUPPORTED_BLOCK_EDITOR = "unsupportedBlockEditor";
private static final String PROP_NAME_COLORS = "colors";
private static final String PROP_NAME_GRADIENTS = "gradients";
private static final String PROP_NAME_MODAL_LAYOUT_PICKER = "modalLayoutPicker";

private static OkHttpHeaderInterceptor sAddCookiesInterceptor = new OkHttpHeaderInterceptor();
private static OkHttpClient sOkHttpClient = new OkHttpClient.Builder().addInterceptor(sAddCookiesInterceptor).build();
Expand Down Expand Up @@ -434,7 +435,8 @@ public void onCreateView(Context initContext,
@Nullable Boolean isSiteUsingWpComRestApi,
@Nullable Bundle editorTheme,
boolean isUnsupportedBlockEditorEnabled,
boolean enableMentionsFlag) {
boolean enableMentionsFlag,
boolean isModalLayoutPickerEnabled) {
mIsDarkMode = isDarkMode;
mExceptionLogger = exceptionLogger;
mBreadcrumbLogger = breadcrumbLogger;
Expand Down Expand Up @@ -472,6 +474,7 @@ public void onCreateView(Context initContext,
capabilities.putBoolean(PROP_NAME_CAPABILITIES_MENTIONS, isSiteUsingWpComRestApi && enableMentionsFlag);
}
capabilities.putBoolean(PROP_NAME_CAPABILITIES_UNSUPPORTED_BLOCK_EDITOR, isUnsupportedBlockEditorEnabled);
capabilities.putBoolean(PROP_NAME_MODAL_LAYOUT_PICKER, isModalLayoutPickerEnabled);
initialProps.putBundle(PROP_NAME_CAPABILITIES, capabilities);

Serializable colors = editorTheme != null ? editorTheme.getSerializable(PROP_NAME_COLORS) : null;
Expand Down

0 comments on commit f969953

Please sign in to comment.