Skip to content
19 changes: 19 additions & 0 deletions src/Core/src/Platform/Android/EditTextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,25 @@
if (editText.InputType.HasFlag(InputTypes.ClassNumber))
editText.InputType |= InputTypes.NumberVariationPassword;
}
else if (textInput is IEntry)
{
editText.InputType &= ~InputTypes.TextVariationPassword;
editText.InputType &= ~InputTypes.NumberVariationPassword;
Comment thread
jpd21122012 marked this conversation as resolved.
Resolved
Comment thread
jpd21122012 marked this conversation as resolved.
Resolved
if (textInput is IEntry entry)
{
if (entry.IsPassword)
{
if (editText.InputType.HasFlag(InputTypes.ClassText))
editText.InputType |= InputTypes.TextVariationPassword;
if (editText.InputType.HasFlag(InputTypes.ClassNumber))
editText.InputType |= InputTypes.NumberVariationPassword;
}
else
{
editText.InputType &= ~InputTypes.TextVariationPassword;
editText.InputType &= ~InputTypes.NumberVariationPassword;
}
Comment thread
jpd21122012 marked this conversation as resolved.
Resolved
}
Comment thread
jpd21122012 marked this conversation as resolved.
Resolved

if (textInput is IEditor)
editText.InputType |= InputTypes.TextFlagMultiLine;
Expand All @@ -400,7 +419,7 @@
// If we implement the OnSelectionChanged method, this method is called after a keyboard layout change with SelectionStart = 0,
// Let's restore the cursor position to its previous location.
editText.SetSelection(previousCursorPosition);
}

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr (Build .NET MAUI Build macOS (Release))

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr (Build .NET MAUI Build macOS (Debug))

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr (Pack .NET MAUI Pack macOS)

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr (Pack .NET MAUI Pack macOS)

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

Check failure on line 422 in src/Core/src/Platform/Android/EditTextExtensions.cs

View check run for this annotation

Azure Pipelines / maui-pr

src/Core/src/Platform/Android/EditTextExtensions.cs#L422

src/Core/src/Platform/Android/EditTextExtensions.cs(422,4): error CS1513: (NETCORE_ENGINEERING_TELEMETRY=Build) } expected

internal static bool IsCompletedAction(this EditorActionEventArgs e, ImeAction currentInputImeFlag)
{
Expand Down
Loading