Skip to content

Commit

Permalink
feat: Introduce gutenberg_kit editor session property (#21564)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury authored Jan 7, 2025
2 parents 108babf + 12fa0d8 commit eb664ba
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,13 @@ class EditPostActivity : AppCompatActivity(), EditorFragmentActivity, EditorImag
site: SiteModel, isNewPost: Boolean
) {
if (postEditorAnalyticsSession == null) {
val editor = when {
showGutenbergEditor && isGutenbergKitEditor -> PostEditorAnalyticsSession.Editor.GUTENBERG_KIT
showGutenbergEditor -> PostEditorAnalyticsSession.Editor.GUTENBERG
else -> PostEditorAnalyticsSession.Editor.CLASSIC
}
postEditorAnalyticsSession = PostEditorAnalyticsSession(
if (showGutenbergEditor) PostEditorAnalyticsSession.Editor.GUTENBERG
else PostEditorAnalyticsSession.Editor.CLASSIC,
post, site, isNewPost, analyticsTrackerWrapper
editor, post, site, isNewPost, analyticsTrackerWrapper
)
}
}
Expand Down

0 comments on commit eb664ba

Please sign in to comment.