From 4f990ffe96d166acc7c4dd48eab44e4438afd6ea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 17:23:50 -0400 Subject: [PATCH] more imeFlags --- src/Android/Renderers/CustomEditorRenderer.cs | 3 ++- src/Android/Renderers/CustomEntryRenderer.cs | 3 ++- src/Android/Renderers/CustomSearchBarRenderer.cs | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Android/Renderers/CustomEditorRenderer.cs b/src/Android/Renderers/CustomEditorRenderer.cs index c56e42a01..08fe73a0f 100644 --- a/src/Android/Renderers/CustomEditorRenderer.cs +++ b/src/Android/Renderers/CustomEditorRenderer.cs @@ -20,7 +20,8 @@ namespace Bit.Droid.Renderers { Control.SetPadding(Control.PaddingLeft, Control.PaddingTop - 10, Control.PaddingRight, Control.PaddingBottom + 20); - Control.ImeOptions = Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning; + Control.ImeOptions = Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning | + (ImeAction)ImeFlags.NoExtractUi; } } } diff --git a/src/Android/Renderers/CustomEntryRenderer.cs b/src/Android/Renderers/CustomEntryRenderer.cs index b9e9f2023..001767913 100644 --- a/src/Android/Renderers/CustomEntryRenderer.cs +++ b/src/Android/Renderers/CustomEntryRenderer.cs @@ -20,7 +20,8 @@ namespace Bit.Droid.Renderers { Control.SetPadding(Control.PaddingLeft, Control.PaddingTop - 10, Control.PaddingRight, Control.PaddingBottom + 20); - Control.ImeOptions = Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning; + Control.ImeOptions = Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning | + (ImeAction)ImeFlags.NoExtractUi; } } } diff --git a/src/Android/Renderers/CustomSearchBarRenderer.cs b/src/Android/Renderers/CustomSearchBarRenderer.cs index 6edf6d7be..4bf0f6f2c 100644 --- a/src/Android/Renderers/CustomSearchBarRenderer.cs +++ b/src/Android/Renderers/CustomSearchBarRenderer.cs @@ -1,4 +1,5 @@ using Android.Content; +using Android.Views.InputMethods; using Bit.Droid.Renderers; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; @@ -24,6 +25,8 @@ namespace Bit.Droid.Renderers magImage.LayoutParameters = new Android.Widget.LinearLayout.LayoutParams(0, 0); } catch { } + Control.SetImeOptions(Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning | + (ImeAction)ImeFlags.NoExtractUi); } } }