[Controls] Only register AppCompact renderer if running in that context
authorRui Marinho <me@ruimarinho.net>
Thu, 14 Mar 2019 15:31:44 +0000 (15:31 +0000)
committerRui Marinho <me@ruimarinho.net>
Thu, 14 Mar 2019 15:31:44 +0000 (15:31 +0000)
Xamarin.Forms.ControlGallery.Android/_50787CustomRenderer.cs

index 12fd78d..3cc4a12 100644 (file)
@@ -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