-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Previewer] SetDefaultActionBarTitleTextColor
prevents the Android previewer from working
#1407
Comments
/cc @jassmith :) |
Hey - this is a critical issue and we should be rolling out a fix at the earliest convenience. These unsafe casts are breaking the forms previewer in ways we cannot work around. |
Just for bookkeeping, a quick |
while we're at it, |
@jassmith @davidortinau What's the ETA on fixing this? Ideally we'd have this fixed, tested and hotfixed before the end of the week as it is triggering a critical breakage in the previewer |
Fix is underway. As soon as we know an ETA I'll share with you @alanmcgovern. |
is this issue fixed ? |
I've updated Xamarin and everything and tried countless folk remedies I've encountered on the net and I'm still encountering this exact issue. |
@ctrexler Which version of Visual Studio are you running? Which version of Xamarin.Forms are you currently using? |
@hartez : in my case, i am using Visual Studio 2017 community edition, Xamarin.Form 3.1.0.583944. i tried by downgrading its different versions, no help. |
@jlahare And you're getting the exact error message posted above? An Are you on Mac or Windows? |
i am using Xamarin.Form in Microsoft Visual Studio Community edition over Windows 10 O.S. |
@hartez I'm also using Visual Studio 17 commutiy with the latest Xamarin 3.1 and yes I'm receiving the exact error message of an I might've figured something out though. I found out that my project is a Portable Class Library which went obsolete about a year ago. I'm going to copy everything over to a new Standard Class Library today. Could that by chance cause the issue? I'll let you know what happens after I make the transition if I don't hear from you sooner. Thanks for the quick response and sorry for my slow one. I just now saw the notification. |
I still have this issue happening: === Visual Studio Community 2017 for Mac === Version 7.5.3 (build 7)
=== NuGet === Version: 4.3.1.4445 === .NET Core === Runtime: Not installed === Xamarin.Profiler === Version: 1.6.2 === Apple Developer Tools === Xcode 8.2.1 (11766.1) === Xamarin.Mac === Version: 4.4.1.193 (Visual Studio Community) === Xamarin.Android === Version: 8.3.3.2 (Visual Studio Community) SDK Tools Version: 26.1.1 Java SDK: /usr Android Designer EPL code available here: === Xamarin Inspector === Version: 1.4.0 === Xamarin.iOS === Version: 11.12.0.4 (Visual Studio Community) === Build Information === Release ID: 705030007 === Operating System === Mac OS X 10.11.6 |
To update my last post, after moving everything over to a new Standard Class Library, the Xamarin.Forms previewer started working immediately. I don't know if having a PCL was the route cause, I'm just following up with my experience regarding this issue. |
Description
The
SetDefaultActionBarTitleTextColor
method (or any method for that matter) should not make assumption about a context being anActivity
(that is never do((Activity)_context)
).It should use the as operator and null-check the result instead (or
?.
operator).Steps to Reproduce
Expected Behavior
Works
Actual Behavior
Exception:
Basic Information
Screenshots
N/A
Reproduction Link
N/A
The text was updated successfully, but these errors were encountered: