[Android] Null check on Switch TrackDrawable (#5851)
authorSamantha Houts <samhouts@users.noreply.github.com>
Thu, 11 Apr 2019 00:25:45 +0000 (17:25 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2019 00:25:45 +0000 (17:25 -0700)
commit618ed187d75ed5b0794ae9933183f10be75b2f14
tree985a5396f61b8d3270daf5347d2caf9d7b79a229
parent4ba7610c04d9307558cfd021e5eca2412aad3a04
[Android] Null check on Switch TrackDrawable (#5851)

* [Android] Null check on Switch TrackDrawable

fixes #5553

* Add a few more checks, dispose Drawable, fix copy/paste error

* Couple more for safety's sake
Xamarin.Forms.Core/Switch.cs
Xamarin.Forms.Platform.Android/AppCompat/SwitchRenderer.cs
Xamarin.Forms.Platform.Android/Renderers/SwitchRenderer.cs