mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 02:23:57 +00:00
24 lines
663 B
C#
24 lines
663 B
C#
using Android.Widget;
|
|
using Bit.App.Droid.Effects;
|
|
using Microsoft.Maui.Controls.Platform;
|
|
|
|
[assembly: ExportEffect(typeof(NoEmojiKeyboardEffect), nameof(NoEmojiKeyboardEffect))]
|
|
namespace Bit.App.Droid.Effects
|
|
{
|
|
public class NoEmojiKeyboardEffect : PlatformEffect
|
|
{
|
|
protected override void OnAttached()
|
|
{
|
|
if (Control is EditText editText)
|
|
{
|
|
editText.InputType = Android.Text.InputTypes.ClassText | Android.Text.InputTypes.TextVariationVisiblePassword | Android.Text.InputTypes.TextFlagMultiLine;
|
|
}
|
|
}
|
|
|
|
protected override void OnDetached()
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|