diff --git a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java index c8dc71940370..38504687b0d9 100644 --- a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java +++ b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java @@ -680,6 +680,13 @@ public void onActivityResult(int requestCode, int resultCode, @Nullable Intent d String blockId = data.getStringExtra(WPGutenbergWebViewActivity.ARG_BLOCK_ID); String content = data.getStringExtra(WPGutenbergWebViewActivity.ARG_BLOCK_CONTENT); getGutenbergContainerFragment().replaceUnsupportedBlock(content, blockId); + if (mCurrentGutenbergPropsBuilder == null) { + SavedInstanceDatabase db = SavedInstanceDatabase.Companion.getDatabase(getContext()); + if (db != null) { + mCurrentGutenbergPropsBuilder = db.getParcel(ARG_GUTENBERG_PROPS_BUILDER, + GutenbergPropsBuilder.CREATOR); + } + } // We need to send latest capabilities as JS side clears them getGutenbergContainerFragment().updateCapabilities(mCurrentGutenbergPropsBuilder); trackWebViewClosed("save");