From 82a6ca668a10a96036538c15cabfba43d8769a30 Mon Sep 17 00:00:00 2001 From: Annmarie Ziegler Date: Wed, 19 Jun 2024 07:33:14 -0400 Subject: [PATCH] Fix using the wrong state key --- .../java/org/wordpress/android/ui/posts/EditPostActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.kt b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.kt index e7c44262f0d9..caf240ccdb63 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.kt @@ -718,7 +718,7 @@ class EditPostActivity : LocaleAwareActivity(), EditorFragmentActivity, EditorIm } isNewPost = state.getBoolean(EditPostActivityConstants.STATE_KEY_IS_NEW_POST, false) - isVoiceContentSet = state.getBoolean(EditPostActivityConstants.STATE_KEY_IS_NEW_POST, false) + isVoiceContentSet = state.getBoolean(EditPostActivityConstants.STATE_KEY_IS_VOICE_CONTENT_SET, false) updatePostLoadingAndDialogState( fromInt( state.getInt(EditPostActivityConstants.STATE_KEY_POST_LOADING_STATE, 0)