Skip to content

Commit

Permalink
Refactor: Drop the AI suffix from the actionType
Browse files Browse the repository at this point in the history
  • Loading branch information
zwarm committed May 25, 2024
1 parent 12bdeb5 commit 40d396f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sealed class MainActionListItem {
CREATE_NEW_PAGE_FROM_PAGES_CARD,
CREATE_NEW_POST,
ANSWER_BLOGGING_PROMPT,
CREATE_NEW_POST_FROM_AUDIO_AI
CREATE_NEW_POST_FROM_AUDIO
}

data class CreateAction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ private void initViewModel() {

mViewModel.getCreateAction().observe(this, createAction -> {
switch (createAction) {
case CREATE_NEW_POST_FROM_AUDIO_AI:
case CREATE_NEW_POST_FROM_AUDIO:
launchVoiceToContent();
break;
case CREATE_NEW_POST:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class WPMainActivityViewModel @Inject constructor(
if (voiceToContentFeatureUtils.isVoiceToContentEnabled() && hasFullAccessToContent(site)) {
actionsList.add(
CreateAction(
actionType = ActionType.CREATE_NEW_POST_FROM_AUDIO_AI,
actionType = ActionType.CREATE_NEW_POST_FROM_AUDIO,
iconRes = R.drawable.ic_mic_white_24dp,
labelRes = R.string.my_site_bottom_sheet_add_post_from_audio,
onClickAction = ::onCreateActionClicked
Expand Down

0 comments on commit 40d396f

Please sign in to comment.