Skip to content

Commit ec01193

Browse files
author
Gerardo Pacheco
authored
Merge pull request #20852 from wordpress-mobile/gutenberg/voice-to-content
[Gutenberg] Voice to content
2 parents 62d260a + 7c41ee1 commit ec01193

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
25.1
44
-----
5-
5+
* [*] [internal] Block editor: Add onContentUpdate bridge functionality [https://github.com/wordpress-mobile/gutenberg-mobile/pull/20852]
66

77
25.0
88
-----

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ext {
2323
automatticAboutVersion = '1.4.0'
2424
automatticRestVersion = '1.0.8'
2525
automatticTracksVersion = '5.0.0'
26-
gutenbergMobileVersion = 'v1.119.0'
26+
gutenbergMobileVersion = 'v1.120.0-alpha1'
2727
wordPressAztecVersion = 'v2.1.3'
2828
wordPressFluxCVersion = 'trunk-a9a471914d3ebd1093986d3d0a95c2a29b29dca0'
2929
wordPressLoginVersion = '1.15.0'

libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergContainerFragment.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.view.ViewGroup;
77

88
import androidx.activity.OnBackPressedCallback;
9+
import androidx.annotation.NonNull;
910
import androidx.annotation.Nullable;
1011
import androidx.core.util.Consumer;
1112
import androidx.core.util.Pair;
@@ -311,6 +312,10 @@ public void onRedoPressed() {
311312
mWPAndroidGlueCode.onRedoPressed();
312313
}
313314

315+
public void onContentUpdate(@NonNull String content) {
316+
mWPAndroidGlueCode.onContentUpdate(content);
317+
}
318+
314319
public void updateCapabilities(GutenbergPropsBuilder gutenbergPropsBuilder) {
315320
// We want to make sure that activity isn't null
316321
// as it can make this crash to happen: https://github.com/wordpress-mobile/WordPress-Android/issues/13248

0 commit comments

Comments
 (0)