diff --git a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergContainerFragment.java b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergContainerFragment.java index e526de993dad..685ab7769350 100644 --- a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergContainerFragment.java +++ b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergContainerFragment.java @@ -13,6 +13,7 @@ import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnEditorMountListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnGetContentTimeout; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnImageFullscreenPreviewListener; +import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnMediaEditorListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnMediaLibraryButtonListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnReattachQueryListener; @@ -53,7 +54,8 @@ public void attachToContainer(ViewGroup viewGroup, OnMediaLibraryButtonListener OnEditorAutosaveListener onEditorAutosaveListener, OnAuthHeaderRequestedListener onAuthHeaderRequestedListener, RequestExecutor fetchExecutor, - OnImageFullscreenPreviewListener onImageFullscreenPreviewListener) { + OnImageFullscreenPreviewListener onImageFullscreenPreviewListener, + OnMediaEditorListener onMediaEditorListener) { mWPAndroidGlueCode.attachToContainer( viewGroup, onMediaLibraryButtonListener, @@ -62,7 +64,8 @@ public void attachToContainer(ViewGroup viewGroup, OnMediaLibraryButtonListener onEditorAutosaveListener, onAuthHeaderRequestedListener, fetchExecutor, - onImageFullscreenPreviewListener); + onImageFullscreenPreviewListener, + onMediaEditorListener); } @Override diff --git a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java index cc1d9ef37e86..53321dbf2f24 100644 --- a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java +++ b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java @@ -49,6 +49,7 @@ import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnEditorMountListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnGetContentTimeout; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnImageFullscreenPreviewListener; +import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnMediaEditorListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnMediaLibraryButtonListener; import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode.OnReattachQueryListener; @@ -356,6 +357,11 @@ public void run() { @Override public void onImageFullscreenPreviewClicked(String mediaUrl) { mEditorImagePreviewListener.onImagePreviewRequested(mediaUrl); } + }, + new OnMediaEditorListener() { + @Override public void onMediaEditorClicked(String mediaUrl) { + // Show Media Editor + } }); // request dependency injection. Do this after setting min/max dimensions diff --git a/libs/gutenberg-mobile b/libs/gutenberg-mobile index f14f1e4da700..7963eeed7aaa 160000 --- a/libs/gutenberg-mobile +++ b/libs/gutenberg-mobile @@ -1 +1 @@ -Subproject commit f14f1e4da70089cb1c3151f6e7da1f2ad94e3621 +Subproject commit 7963eeed7aaa0ca9529fcbaf7408ca12fe132122