Skip to content

Commit 55d78c8

Browse files
committed
Rename capability for clarity
The capability property passed to Gutenberg is dependent upon both the percentage eligibility and whether the editor has been launched previously. Renaming the property may help convey the multiple factors.
1 parent 335b466 commit 55d78c8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() {
22932293
boolean isFreeWPCom = mSite.isWPCom() && SiteUtils.onFreePlan(mSite);
22942294
boolean isWPComSite = mSite.isWPCom() || mSite.isWPComAtomic();
22952295

2296-
boolean canViewEditorOnboarding = canViewEditorOnboarding() && !AppPrefs.hasLaunchedGutenbergEditor();
2296+
boolean enableEditorOnboarding = canViewEditorOnboarding() && !AppPrefs.hasLaunchedGutenbergEditor();
22972297

22982298
return new GutenbergPropsBuilder(
22992299
mContactInfoBlockFeatureConfig.isEnabled() && SiteUtils.supportsContactInfoFeature(mSite),
@@ -2308,7 +2308,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() {
23082308
postType,
23092309
featuredImageId,
23102310
themeBundle,
2311-
canViewEditorOnboarding
2311+
enableEditorOnboarding
23122312
);
23132313
}
23142314

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
ext.kotlin_ktx_version = '1.2.0'
88
ext.wordPressUtilsVersion = 'develop-bb54ee34c5fec5fa7375ce90a356adb5adbdcae0'
99
ext.detektVersion = '1.15.0'
10-
ext.gutenbergMobileVersion = 'develop-b316b2b49f57f08426f1a33418f28480cdc8787b'
10+
ext.gutenbergMobileVersion = '3625-6f517e53550628c957a8ab043d763ad07cb5fb90'
1111

1212
repositories {
1313
google()

libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergPropsBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data class GutenbergPropsBuilder(
2020
private val postType: String,
2121
private val featuredImageId: Int,
2222
private val editorTheme: Bundle?,
23-
private val canViewEditorOnboarding: Boolean
23+
private val enableEditorOnboarding: Boolean
2424
) : Parcelable {
2525
fun build(activity: Activity, isHtmlModeEnabled: Boolean) = GutenbergProps(
2626
enableContactInfoBlock = enableContactInfoBlock,
@@ -38,6 +38,6 @@ data class GutenbergPropsBuilder(
3838
translations = GutenbergUtils.getTranslations(activity),
3939
isDarkMode = GutenbergUtils.isDarkMode(activity),
4040
htmlModeEnabled = isHtmlModeEnabled,
41-
canViewEditorOnboarding = canViewEditorOnboarding
41+
enableEditorOnboarding = enableEditorOnboarding
4242
)
4343
}

0 commit comments

Comments
 (0)