mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-16 06:25:05 -05:00
set typeface again after changing inputType of password fields (setting inputType changes the font)
This commit is contained in:
parent
7aa2d5beef
commit
268a7c8434
@ -815,7 +815,9 @@ namespace keepass2android
|
|||||||
private void SetPasswordTypeface(TextView textView)
|
private void SetPasswordTypeface(TextView textView)
|
||||||
{
|
{
|
||||||
if (_passwordFont == null)
|
if (_passwordFont == null)
|
||||||
|
{
|
||||||
_passwordFont = Typeface.CreateFromAsset(Assets, "DejaVuSansMono.ttf");
|
_passwordFont = Typeface.CreateFromAsset(Assets, "DejaVuSansMono.ttf");
|
||||||
|
}
|
||||||
textView.Typeface = _passwordFont;
|
textView.Typeface = _passwordFont;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -933,7 +935,8 @@ namespace keepass2android
|
|||||||
if (_showPassword)
|
if (_showPassword)
|
||||||
{
|
{
|
||||||
//password.TransformationMethod = null;
|
//password.TransformationMethod = null;
|
||||||
password.InputType = InputTypes.TextVariationVisiblePassword ;
|
password.InputType = password.InputType = InputTypes.ClassText | InputTypes.TextVariationVisiblePassword;
|
||||||
|
SetPasswordTypeface(password);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user