Skip to content

Commit

Permalink
Fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Dec 12, 2022
1 parent 8121655 commit 2d377ac
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
import org.wordpress.android.ui.RequestCodes;
import org.wordpress.android.ui.Shortcut;
import org.wordpress.android.ui.history.HistoryListItem.Revision;
import org.wordpress.android.ui.jetpackoverlay.JetpackFeatureRemovalPhase;
import org.wordpress.android.ui.jetpackoverlay.JetpackFeatureRemovalPhase.PhaseFour;
import org.wordpress.android.ui.jetpackoverlay.JetpackFeatureRemovalPhaseHelper;
import org.wordpress.android.ui.media.MediaBrowserActivity;
Expand Down Expand Up @@ -1336,7 +1337,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.
int helpMenuTitle = mJetpackFeatureRemovalPhaseHelper.getCurrentPhase() == PhaseFour.INSTANCE ? R.string.help : R.string.help_and_support;
JetpackFeatureRemovalPhase currentRemovalPhase = mJetpackFeatureRemovalPhaseHelper.getCurrentPhase();
int helpMenuTitle = currentRemovalPhase == PhaseFour.INSTANCE ? R.string.help : R.string.help_and_support;
helpMenuItem.setTitle(helpMenuTitle);

if (mEditorFragment instanceof GutenbergEditorFragment
Expand Down Expand Up @@ -2360,7 +2362,7 @@ private GutenbergPropsBuilder getGutenbergPropsBuilder() {

// Disable Jetpack-powered editor features in WordPress app based on Jetpack Features Removal Phase helper
boolean shouldRemoveFeatures = mJetpackFeatureRemovalPhaseHelper.getCurrentPhase() == PhaseFour.INSTANCE;
if(shouldRemoveFeatures) {
if (shouldRemoveFeatures) {
return new GutenbergPropsBuilder(
false,
false,
Expand Down

0 comments on commit 2d377ac

Please sign in to comment.