Bug 39485 - When two ActivityIndicators are active, only one rotates
Summary: When two ActivityIndicators are active, only one rotates
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.1.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-09 14:24 UTC by Christian Käser
Modified: 2017-06-19 16:29 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Minimal example project (401.55 KB, application/x-zip-compressed)
2016-03-11 09:35 UTC, Christian Käser
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Christian Käser 2016-03-09 14:24:23 UTC
On Android, when there are two Xamarin.Forms pages on the navigation stack and each of those pages has an ActivityIndicator with IsRunning = true, the second one doesn't actually rotate but stays stationary.

A possible workaround is to set IsRunning = false on the first ActivityIndicator before opening the page with the second one.

Can be reproduced on multiple Android 5.x and 6.x devices with Xamarin.Forms 1.5 and 2.1. Works as expected on iOS.
Comment 1 E.Z. Hart [MSFT] 2016-03-10 20:17:31 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue we would very much appreciate it.

Warm regards,
Xamarin Forms Team
Comment 2 Christian Käser 2016-03-11 08:58:03 UTC
It might be an interaction with something else in my code but I'll try to get a minimal example running.
Comment 3 Christian Käser 2016-03-11 09:35:58 UTC
Created attachment 15365 [details]
Minimal example project

Here's a minimal example. I guess the problem is an interaction between Xamarin.Forms and the AsyncCommand (which I adapted from http://mike-ward.net/2013/08/09/asynccommand-implementation-in-wpf/, MSDN has a pretty similar example at https://msdn.microsoft.com/en-us/magazine/dn630647.aspx)

To see the behavior, just tap the "Show Child" button. The child page shows up but the ActivityIndicator is frozen in place. When you set IsRunning=false for the ActivityIndicator on ParentPage, the one on ChildPage spins as expected.
Comment 4 Jason Smith [MSFT] 2016-03-13 11:45:20 UTC
Thank you I have re-added this bug to the triage queue
Comment 5 E.Z. Hart [MSFT] 2016-03-14 18:13:39 UTC
Christian,

I've been trying to replicate your issue using the repro you've provided. I've not been able to reproduce the problem on an emulator or on a Nexus 6 device.

Which devices have you encountered this problem on?
Comment 6 Chris Hardy [MSFT] 2017-06-19 16:29:52 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!