diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/products/ai/productinfo/AiProductPromptScreen.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/products/ai/productinfo/AiProductPromptScreen.kt index 3af8e1b0ba2..4e9709a49a5 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/products/ai/productinfo/AiProductPromptScreen.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/products/ai/productinfo/AiProductPromptScreen.kt @@ -74,7 +74,6 @@ import com.woocommerce.android.ui.products.ai.components.ImageAction import com.woocommerce.android.ui.products.ai.components.SelectImageSection import com.woocommerce.android.ui.products.ai.productinfo.AiProductPromptViewModel.AiProductPromptState import com.woocommerce.android.ui.products.ai.productinfo.AiProductPromptViewModel.PromptSuggestionBar -import com.woocommerce.android.util.FeatureFlag import kotlinx.coroutines.delay import kotlinx.coroutines.launch import org.wordpress.android.mediapicker.api.MediaPickerSetup.DataSource @@ -340,21 +339,16 @@ private fun ProductPromptTextField( modifier = Modifier .onFocusChanged { focusState -> isFocused = focusState.isFocused - if (isFocused && FeatureFlag.PRODUCT_CREATION_WITH_AI_V2_M3.isEnabled()) { - coroutineScope.launch { - @Suppress("MagicNumber") - delay(200) // Delay to ensure advice box is shown before scrolling. - scrollState.animateScrollTo(scrollToPosition.roundToInt()) - } + coroutineScope.launch { + @Suppress("MagicNumber") + delay(200) // Delay to ensure advice box is shown before scrolling. + scrollState.animateScrollTo(scrollToPosition.roundToInt()) } } ) } } - AnimatedVisibility( - (isFocused || state.productPrompt.isNotEmpty()) && - FeatureFlag.PRODUCT_CREATION_WITH_AI_V2_M3.isEnabled() - ) { + AnimatedVisibility((isFocused || state.productPrompt.isNotEmpty())) { PromptSuggestions( promptSuggestionBarState = state.promptSuggestionBarState, modifier = Modifier.padding(top = 8.dp) diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt index c48706cea2c..3587597746f 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt @@ -18,7 +18,6 @@ enum class FeatureFlag { GOOGLE_ADS_M1, GOOGLE_ADS_ANALYTICS_HUB_M1, PRODUCT_CREATION_WITH_AI_V2, - PRODUCT_CREATION_WITH_AI_V2_M3, SHOW_INBOX_CTA; fun isEnabled(context: Context? = null): Boolean { @@ -39,7 +38,6 @@ enum class FeatureFlag { INBOX, GOOGLE_ADS_ANALYTICS_HUB_M1, SHOW_INBOX_CTA, - PRODUCT_CREATION_WITH_AI_V2_M3, GOOGLE_ADS_M1 -> true } }