This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 53803 - Issue where using FormsApplicationActivity crashes on latest nightlies after PR631.
Summary: Issue where using FormsApplicationActivity crashes on latest nightlies after ...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro
URL:
Depends on:
Blocks:
 
Reported: 2017-03-22 19:29 UTC by Brad Chase
Modified: 2017-03-24 20:20 UTC (History)
3 users (show)

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


Attachments

Description Brad Chase 2017-03-22 19:29:50 UTC
Xamarin.Forms.Platform.Android:

The problem exists in the current nightlies.  If you are still using the FormsApplicationActivity instead of FormsAppCompatActivity, the title in toolbar is not the first element but further down the line of elements.

The app crashes at initialization with an invalid cast.

I have a new PR I will put up with the fix, I am just placing this here for reference and discussion.
Comment 2 Paul DiPietro 2017-03-22 22:16:59 UTC
Weird, I'm on the latest nightly using FormsApplicationActivity and it isn't crashing. It should just be a NavPage containing a ContentPage with a title, right?
Comment 3 Brad Chase 2017-03-22 23:02:33 UTC
Hmm well I switched out the main page to a masterdetail which is what we use and added a simple style inheriting from light.  I did that in the sample pages gallery project.  I don't believe the style needs to be there so maybe it's the master details page combined with the FormsApplicationActivity.
Comment 4 Brad Chase 2017-03-22 23:04:48 UTC
To note, the first element is an image.
Comment 5 Paul DiPietro 2017-03-24 16:50:08 UTC
Just to verify, is this occuring in the prereleases, or only the nightlies? For sake of completeness would you mind uploading a reproduction?
Comment 6 Brad Chase 2017-03-24 19:18:11 UTC
Just the nightlies.
Comment 7 Rui Marinho 2017-03-24 20:20:39 UTC
Should be fixed on the next one.

Note You need to log in before you can comment on or make changes to this bug.