From f177968958ac458b5ad66f8bf1f3b188f9accaaa Mon Sep 17 00:00:00 2001 From: Dinis Vieira Date: Tue, 24 Oct 2023 22:25:05 +0100 Subject: [PATCH] Checked some [MAUI-Migration] and deleted when it's working as intended. SearchBarHandlerMapping: IME options working as intended SliderHandlerMappings: The MAUI "replacement" for Color.Default seems to be White so the old use case doesn't seem to be needed anymore. --- .../Android/Handlers/SearchBarHandlerMappings.cs | 3 --- .../Platforms/Android/Handlers/SliderHandlerMappings.cs | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/App/Platforms/Android/Handlers/SearchBarHandlerMappings.cs b/src/App/Platforms/Android/Handlers/SearchBarHandlerMappings.cs index d5c77ae68..efa65c608 100644 --- a/src/App/Platforms/Android/Handlers/SearchBarHandlerMappings.cs +++ b/src/App/Platforms/Android/Handlers/SearchBarHandlerMappings.cs @@ -15,11 +15,8 @@ namespace Bit.App.Handlers magImage.LayoutParameters = new Android.Widget.LinearLayout.LayoutParams(0, 0); } catch { } - // TODO: [MAUI-Migration] [Check] handler.PlatformView.ImeOptions = handler.PlatformView.ImeOptions | (int)ImeFlags.NoPersonalizedLearning | (int)ImeFlags.NoExtractUi; - //Control.SetImeOptions(Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning | - // (ImeAction)ImeFlags.NoExtractUi); }); } } diff --git a/src/App/Platforms/Android/Handlers/SliderHandlerMappings.cs b/src/App/Platforms/Android/Handlers/SliderHandlerMappings.cs index 785f0e3e1..eb839960f 100644 --- a/src/App/Platforms/Android/Handlers/SliderHandlerMappings.cs +++ b/src/App/Platforms/Android/Handlers/SliderHandlerMappings.cs @@ -14,15 +14,7 @@ namespace Bit.App.Handlers var t = ResourcesCompat.GetDrawable(handler.PlatformView.Resources, Resource.Drawable.slider_thumb, null); if (t is GradientDrawable thumb && slider is ExtendedSlider extSlider) { - // TODO: [MAUI-Migration] - //if (view.ThumbColor == Colors.Default) - //{ - // thumb.SetColor(Colors.White.ToAndroid()); - //} - //else - //{ thumb.SetColor(extSlider.ThumbColor.ToAndroid()); - //} thumb.SetStroke(3, extSlider.ThumbBorderColor.ToAndroid()); handler.PlatformView.SetThumb(thumb); }