Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package org.wordpress.android.editor;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode;
Expand Down Expand Up @@ -47,12 +51,18 @@ public void attachToContainer(ViewGroup viewGroup, OnMediaLibraryButtonListener
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

mWPAndroidGlueCode = new WPAndroidGlueCode();
mWPAndroidGlueCode.onCreate(getContext());
}

@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
boolean isNewPost = getArguments() != null && getArguments().getBoolean(ARG_IS_NEW_POST);
String localeString = getArguments().getString(ARG_LOCALE);
Bundle translations = getArguments().getBundle(ARG_TRANSLATIONS);

mWPAndroidGlueCode = new WPAndroidGlueCode();
mWPAndroidGlueCode.onCreate(getContext());
mWPAndroidGlueCode.onCreateView(
getContext(),
mHtmlModeEnabled,
Expand All @@ -65,6 +75,8 @@ public void onCreate(Bundle savedInstanceState) {

// clear the content initialization flag since a new ReactRootView has been created;
mHasReceivedAnyContent = false;

return super.onCreateView(inflater, container, savedInstanceState);
}

@Override
Expand Down