From 6ed70b00bdcac7220fc6ad4a9dba338485c7dcce Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Thu, 14 Mar 2019 15:31:44 +0000 Subject: [PATCH] =?utf8?q?[Controls]=C2=A0Only=20register=20AppCompact=20r?= =?utf8?q?enderer=20if=20running=20in=20that=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs b/Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs index 12fd78d..3cc4a12 100644 --- a/Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs +++ b/Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs @@ -1,4 +1,5 @@ -using Android.Content; +#if !FORMS_APPLICATION_ACTIVITY && !PRE_APPLICATION_CLASS +using Android.Content; using Xamarin.Forms; using Xamarin.Forms.ControlGallery.Android; using Xamarin.Forms.Platform.Android.AppCompat; @@ -24,4 +25,5 @@ namespace Xamarin.Forms.ControlGallery.Android transaction.SetCustomAnimations(Resource.Animation.enter_from_left, Resource.Animation.exit_to_right); } } -} \ No newline at end of file +} +#endif \ No newline at end of file -- 2.7.4