File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
WordPress/src/main/java/org/wordpress/android/ui/posts Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1551,17 +1551,16 @@ private void showGutenbergInformativeDialog() {
15511551 }
15521552
15531553 private void setGutenbergEnabledIfNeeded () {
1554- boolean newSitePopupNeeded = AppPrefs .shouldShowGutenbergInfoPopup (mSite .getUrl ());
1555- if (( TextUtils . isEmpty ( mSite . getMobileEditor ()) && ! mIsNewPost )
1556- || newSitePopupNeeded ) {
1554+ boolean showPopup = AppPrefs .shouldShowGutenbergInfoPopup (mSite .getUrl ());
1555+
1556+ if ( TextUtils . isEmpty ( mSite . getMobileEditor ()) && ! mIsNewPost ) {
15571557 SiteUtils .enableBlockEditor (mDispatcher , mSite );
1558+ AnalyticsUtils .trackWithSiteDetails (Stat .EDITOR_GUTENBERG_ENABLED , mSite ,
1559+ BlockEditorEnabledSource .ON_BLOCK_POST_OPENING .asPropertyMap ());
1560+ showPopup = true ;
1561+ }
15581562
1559- if (!newSitePopupNeeded ) {
1560- // Don't track the activation of the block editor on new sites.
1561- // The flip to GB happened at site creation time, and the flip is tracked there with proper details
1562- AnalyticsUtils .trackWithSiteDetails (Stat .EDITOR_GUTENBERG_ENABLED , mSite ,
1563- BlockEditorEnabledSource .ON_BLOCK_POST_OPENING .asPropertyMap ());
1564- }
1563+ if (showPopup ) {
15651564 showGutenbergInformativeDialog ();
15661565 }
15671566 }
You can’t perform that action at this time.
0 commit comments