Xamarin.forms: [Bug] Shell.Current.Navigation.PopAsync(true) causing blink on Android

Created on 27 Feb 2020  路  8Comments  路  Source: xamarin/Xamarin.Forms

Description

On Android device, when navigating back by calling Shell.Current.Navigation.PopAsync(true) with animation, it is causing quick blink on the device.

Steps to Reproduce

  1. Under a Xamarin.Forms Shell App, navigating From Page A to Page B by calling "Shell.Current.GoToAsync("PageB", true)".
  2. And pop the Page B from the navigation by calling "Shell.Current.Navigation.PopAsync(true)"
    The first step (pusing the PageB into the navigation stack with animation) works fine for me on Android.

    Expected Behavior

Should have a smooth navigation experience.

Actual Behavior

The pop step gets blink on Android.

Basic Information

  • Version with issue: Xamarin.Forms 4.4.0.991265
  • Last known good version: N/A
  • IDE: Visual Studio for Mac community 8.4 (build 2657)
  • Platform Target Frameworks:

    • iOS: 10.0

    • Android: Android 10.0(Q)

    • UWP: N/A

  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: Samsung Galaxy A20

Screenshots

As it is a blink issue, I cannot provide screenshots.

Reproduction Link

Workaround

navigation shell 4 Android bug

Most helpful comment

I can confirm this and it duplicates the following issues:
**#9300 - Xamarin shell navigation flickering on back press

8581 - [Bug] Shell application flickering on back navigation**

All 8 comments

I can confirm this and it duplicates the following issues:
**#9300 - Xamarin shell navigation flickering on back press

8581 - [Bug] Shell application flickering on back navigation**

Workaround

disable animation

Shell.Current.Navigation.PopAsync(animated: false)

I did take out of the animation by setting the animated to false.

please solve this problem. I can not put the application in production

I have also found the blink issue occurs for "Shell.Current.GoToAsync()" with animated 'true' and 'false'.

Please check my comment on https://github.com/xamarin/Xamarin.Forms/issues/8581.

[Shell] navigation - flickering #5755 as of 29 March 2019

Was this page helpful?
0 / 5 - 0 ratings