From 723f602c7537afe8fef8ebadbb4d52f843a1f08f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 18 Dec 2020 00:38:49 +0000 Subject: [PATCH] Automated dotnet-format update --- .../Xamarin.Forms.Controls.Issues.Shared/Issue9906.xaml.cs | 2 +- .../AppCompat/FlyoutPageContainer.cs | 2 +- .../AppCompat/FormsAppCompatActivity.cs | 2 +- .../AppCompat/NavigationPageRenderer.cs | 2 +- .../Extensions/TextViewExtensions.cs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue9906.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue9906.xaml.cs index a4418da0fb6..45c954430c1 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue9906.xaml.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue9906.xaml.cs @@ -26,7 +26,7 @@ public Issue9906() protected override void Init() { - + } } diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FlyoutPageContainer.cs b/Xamarin.Forms.Platform.Android/AppCompat/FlyoutPageContainer.cs index 2c48ea237be..a06a4533beb 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/FlyoutPageContainer.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/FlyoutPageContainer.cs @@ -4,11 +4,11 @@ using Android.Views; using Xamarin.Forms.Internals; using Xamarin.Forms.Platform.Android.AppCompat; +using APlatform = Xamarin.Forms.Platform.Android.AppCompat.Platform; using Fragment = AndroidX.Fragment.App.Fragment; using FragmentContainer = Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer; using FragmentManager = AndroidX.Fragment.App.FragmentManager; using FragmentTransaction = AndroidX.Fragment.App.FragmentTransaction; -using APlatform = Xamarin.Forms.Platform.Android.AppCompat.Platform; namespace Xamarin.Forms.Platform.Android { diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs index c435da1980b..cdb95026c40 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs @@ -122,7 +122,7 @@ static void RegisterHandlers() RegisterHandler(typeof(Switch), typeof(AppCompat.SwitchRenderer), typeof(SwitchRenderer)); RegisterHandler(typeof(Picker), typeof(AppCompat.PickerRenderer), typeof(PickerRenderer)); RegisterHandler(typeof(CarouselPage), typeof(AppCompat.CarouselPageRenderer), typeof(CarouselPageRenderer)); - + if (Forms.Flags.Contains(Flags.UseLegacyRenderers)) { RegisterHandler(typeof(Button), typeof(AppCompat.ButtonRenderer), typeof(ButtonRenderer)); diff --git a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs index 6e885a4458f..8cc6c2e109f 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs @@ -20,13 +20,13 @@ using static Android.Views.View; using static Xamarin.Forms.PlatformConfiguration.AndroidSpecific.AppCompat.NavigationPage; using ActionBarDrawerToggle = AndroidX.AppCompat.App.ActionBarDrawerToggle; +using APlatform = Xamarin.Forms.Platform.Android.AppCompat.Platform; using AToolbar = AndroidX.AppCompat.Widget.Toolbar; using AView = Android.Views.View; using Fragment = AndroidX.Fragment.App.Fragment; using FragmentManager = AndroidX.Fragment.App.FragmentManager; using FragmentTransaction = AndroidX.Fragment.App.FragmentTransaction; using Object = Java.Lang.Object; -using APlatform = Xamarin.Forms.Platform.Android.AppCompat.Platform; namespace Xamarin.Forms.Platform.Android.AppCompat { diff --git a/Xamarin.Forms.Platform.Android/Extensions/TextViewExtensions.cs b/Xamarin.Forms.Platform.Android/Extensions/TextViewExtensions.cs index 89e29d94ff3..2ba79281c69 100644 --- a/Xamarin.Forms.Platform.Android/Extensions/TextViewExtensions.cs +++ b/Xamarin.Forms.Platform.Android/Extensions/TextViewExtensions.cs @@ -22,7 +22,7 @@ public static void SetMaxLines(this TextView textView, Label label) textView.SetMaxLines(maxLines); } - public static void SetLineBreakMode(this TextView textView, Label label) + public static void SetLineBreakMode(this TextView textView, Label label) { var maxLines = SetLineBreak(textView, label.LineBreakMode); textView.SetMaxLines(maxLines); @@ -32,7 +32,7 @@ public static void SetLineBreakMode(this TextView textView, Button button) => SetLineBreak(textView, button.LineBreakMode); - public static int SetLineBreak( TextView textView, LineBreakMode lineBreakMode) + public static int SetLineBreak(TextView textView, LineBreakMode lineBreakMode) { int maxLines = Int32.MaxValue; bool singleLine = false;