1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

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.
This commit is contained in:
Dinis Vieira 2023-10-24 22:25:05 +01:00
parent f1d59210f9
commit f177968958
No known key found for this signature in database
GPG Key ID: 9389160FF6C295F3
2 changed files with 0 additions and 11 deletions

View File

@ -15,11 +15,8 @@ namespace Bit.App.Handlers
magImage.LayoutParameters = new Android.Widget.LinearLayout.LayoutParams(0, 0); magImage.LayoutParameters = new Android.Widget.LinearLayout.LayoutParams(0, 0);
} }
catch { } catch { }
// TODO: [MAUI-Migration] [Check]
handler.PlatformView.ImeOptions = handler.PlatformView.ImeOptions | (int)ImeFlags.NoPersonalizedLearning | handler.PlatformView.ImeOptions = handler.PlatformView.ImeOptions | (int)ImeFlags.NoPersonalizedLearning |
(int)ImeFlags.NoExtractUi; (int)ImeFlags.NoExtractUi;
//Control.SetImeOptions(Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning |
// (ImeAction)ImeFlags.NoExtractUi);
}); });
} }
} }

View File

@ -14,15 +14,7 @@ namespace Bit.App.Handlers
var t = ResourcesCompat.GetDrawable(handler.PlatformView.Resources, Resource.Drawable.slider_thumb, null); var t = ResourcesCompat.GetDrawable(handler.PlatformView.Resources, Resource.Drawable.slider_thumb, null);
if (t is GradientDrawable thumb && slider is ExtendedSlider extSlider) 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.SetColor(extSlider.ThumbColor.ToAndroid());
//}
thumb.SetStroke(3, extSlider.ThumbBorderColor.ToAndroid()); thumb.SetStroke(3, extSlider.ThumbBorderColor.ToAndroid());
handler.PlatformView.SetThumb(thumb); handler.PlatformView.SetThumb(thumb);
} }