Skip to content

Commit

Permalink
Merge pull request #20974 from wordpress-mobile/issue/20912-fix-quick…
Browse files Browse the repository at this point in the history
…press-shortcut

Fix QuickPress shortcut not opening Edit post
  • Loading branch information
irfano committed Jun 12, 2024
2 parents 82a794b + 98b27b1 commit 756cbd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ class EditPostActivity : LocaleAwareActivity(), EditorFragmentActivity, EditorIm
val hasQuickPressBlogId = extras.containsKey(EditPostActivityConstants.EXTRA_QUICKPRESS_BLOG_ID)

// QuickPress might want to use a different blog than the current blog
return if (!isActionSendOrNewMedia && !hasQuickPressFlag && hasQuickPressBlogId) {
return if ((isActionSendOrNewMedia || hasQuickPressFlag) && hasQuickPressBlogId) {
val localSiteId = intent.getIntExtra(EditPostActivityConstants.EXTRA_QUICKPRESS_BLOG_ID, -1)
siteStore.getSiteByLocalId(localSiteId)
} else {
Expand Down

0 comments on commit 756cbd8

Please sign in to comment.