summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.Android
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2017-03-03 04:41:04 -0800
committerRui Marinho <me@ruimarinho.net>2017-03-03 12:45:50 +0000
commit78df8b9f54593dac1a3d5c766ee11fd59bbae350 (patch)
treec6dd24b1602fdacb94c30589fb1908a71ba4ec09 /Xamarin.Forms.ControlGallery.Android
parentdbe0d4945da400a5b00599155d22cda78754294a (diff)
downloadxamarin-forms-78df8b9f54593dac1a3d5c766ee11fd59bbae350.tar.gz
xamarin-forms-78df8b9f54593dac1a3d5c766ee11fd59bbae350.tar.bz2
xamarin-forms-78df8b9f54593dac1a3d5c766ee11fd59bbae350.zip
[Android] Don't crash if Control is accessed in Effect OnDetached when Page is Disposed. (#772)
* Add repro for 51505 * [Android] Don't dispose of EffectControlProvider * Oops
Diffstat (limited to 'Xamarin.Forms.ControlGallery.Android')
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Activity1.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Android/Activity1.cs b/Xamarin.Forms.ControlGallery.Android/Activity1.cs
index cfd8350f..6f2b22dc 100644
--- a/Xamarin.Forms.ControlGallery.Android/Activity1.cs
+++ b/Xamarin.Forms.ControlGallery.Android/Activity1.cs
@@ -43,6 +43,7 @@ namespace Xamarin.Forms.ControlGallery.Android
protected override void OnDetached ()
{
+ Control.SetBackgroundColor(global::Android.Graphics.Color.Beige);
}
protected override void OnElementPropertyChanged (PropertyChangedEventArgs args)