From 4e4e3cbf908c7869a27bec7c156634c738d872f6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 00:08:03 +0000 Subject: [PATCH] Automated dotnet-format update --- src/Core/src/Layouts/LayoutExtensions.cs | 2 +- src/Core/src/Platform/Android/SearchViewExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/src/Layouts/LayoutExtensions.cs b/src/Core/src/Layouts/LayoutExtensions.cs index f29c5248d6c0..199b4165e7b6 100644 --- a/src/Core/src/Layouts/LayoutExtensions.cs +++ b/src/Core/src/Layouts/LayoutExtensions.cs @@ -42,7 +42,7 @@ public static Rectangle ComputeFrame(this IFrameworkElement frameworkElement, Re // then we want the width of the entire bounds consumedWidth = bounds.Width; } - + // And the actual frame width needs to subtract the margins var frameWidth = Math.Max(0, consumedWidth - margin.HorizontalThickness); diff --git a/src/Core/src/Platform/Android/SearchViewExtensions.cs b/src/Core/src/Platform/Android/SearchViewExtensions.cs index 38ca1e42a07d..117767b50d1a 100644 --- a/src/Core/src/Platform/Android/SearchViewExtensions.cs +++ b/src/Core/src/Platform/Android/SearchViewExtensions.cs @@ -32,7 +32,7 @@ public static void UpdateCancelButtonColor(this SearchView searchView, ISearchBa return; var searchCloseButtonIdentifier = Resource.Id.search_close_btn; - + if (searchCloseButtonIdentifier > 0) { var image = searchView.FindViewById(searchCloseButtonIdentifier);