From: Rui Marinho Date: Thu, 14 Mar 2019 15:31:44 +0000 (+0000) Subject: [Controls] Only register AppCompact renderer if running in that context X-Git-Tag: accepted/tizen/5.5/unified/20200421.150457~378^2^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ed70b00bdcac7220fc6ad4a9dba338485c7dcce;p=platform%2Fcore%2Fcsapi%2Fxsf.git [Controls] Only register AppCompact renderer if running in that context --- 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