@@ -61,6 +61,7 @@ import com.woocommerce.android.ui.appwidgets.WidgetUpdater
61
61
import com.woocommerce.android.ui.base.BaseFragment
62
62
import com.woocommerce.android.ui.base.TopLevelFragment
63
63
import com.woocommerce.android.ui.base.UIMessageResolver
64
+ import com.woocommerce.android.ui.blaze.creation.preview.BlazeCampaignCreationPreviewFragment
64
65
import com.woocommerce.android.ui.compose.theme.WooThemeWithBackground
65
66
import com.woocommerce.android.ui.feedback.SurveyType
66
67
import com.woocommerce.android.ui.login.LoginActivity
@@ -206,9 +207,12 @@ class MainActivity :
206
207
override fun onFragmentViewCreated (fm : FragmentManager , f : Fragment , v : View , savedInstanceState : Bundle ? ) {
207
208
if (f is DialogFragment ) return
208
209
210
+ if (f is BlazeCampaignCreationPreviewFragment ) // Context on why this is needed check GH issue #10563
211
+ animatorHelper.cancelToolbarAnimation()
212
+
209
213
when (val appBarStatus = (f as ? BaseFragment )?.activityAppBarStatus ? : AppBarStatus .Visible ()) {
210
214
is AppBarStatus .Visible -> {
211
- showToolbar(f is TopLevelFragment )
215
+ showToolbar(animate = f is TopLevelFragment )
212
216
// re-expand the AppBar when returning to top level fragment,
213
217
// collapse it when entering a child fragment
214
218
if (f is TopLevelFragment ) {
@@ -327,6 +331,7 @@ class MainActivity :
327
331
}
328
332
)
329
333
}
334
+
330
335
override fun hideProgressDialog () {
331
336
progressDialog?.apply {
332
337
if (isShowing) {
0 commit comments