Skip to content

Commit

Permalink
Refactor: use shouldShowJetpackPoweredEditorFeatures to account for t…
Browse files Browse the repository at this point in the history
…he static posters phase
  • Loading branch information
zwarm committed Mar 17, 2023
1 parent a19fffc commit 4ac1550
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1335,8 +1335,8 @@ public boolean onPrepareOptionsMenu(Menu menu) {
if (helpMenuItem != null) {
// Support section will be disabled in WordPress app when Jetpack-powered features are removed.
// Therefore, we have to update the Help menu item accordingly.
boolean jetpackFeaturesRemoved = mJetpackFeatureRemovalPhaseHelper.shouldRemoveJetpackFeatures();
int helpMenuTitle = jetpackFeaturesRemoved ? R.string.help : R.string.help_and_support;
boolean showHelpAndSupport = mJetpackFeatureRemovalPhaseHelper.shouldShowHelpAndSupportOnEditor();
int helpMenuTitle = showHelpAndSupport ? R.string.help_and_support : R.string.help;
helpMenuItem.setTitle(helpMenuTitle);

if (mEditorFragment instanceof GutenbergEditorFragment
Expand Down Expand Up @@ -2272,7 +2272,7 @@ public Fragment getItem(int position) {
gutenbergWebViewAuthorizationData,
gutenbergPropsBuilder,
RequestCodes.EDIT_STORY,
!mJetpackFeatureRemovalPhaseHelper.shouldRemoveJetpackFeatures()
mJetpackFeatureRemovalPhaseHelper.shouldShowJetpackPoweredEditorFeatures()
);
} else {
// If gutenberg editor is not selected, default to Aztec.
Expand Down

0 comments on commit 4ac1550

Please sign in to comment.