From 268a7c843482759bccc2b1a452c208635464a757 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Wed, 1 Apr 2015 21:25:54 +0200 Subject: [PATCH] set typeface again after changing inputType of password fields (setting inputType changes the font) --- src/keepass2android/EntryActivity.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/keepass2android/EntryActivity.cs b/src/keepass2android/EntryActivity.cs index 0bb50fef..b75fb1f8 100644 --- a/src/keepass2android/EntryActivity.cs +++ b/src/keepass2android/EntryActivity.cs @@ -815,8 +815,10 @@ namespace keepass2android private void SetPasswordTypeface(TextView textView) { if (_passwordFont == null) + { _passwordFont = Typeface.CreateFromAsset(Assets, "DejaVuSansMono.ttf"); - textView.Typeface = _passwordFont; + } + textView.Typeface = _passwordFont; } private void PopulateText(int viewId, int containerViewId, String text) @@ -933,7 +935,8 @@ namespace keepass2android if (_showPassword) { //password.TransformationMethod = null; - password.InputType = InputTypes.TextVariationVisiblePassword ; + password.InputType = password.InputType = InputTypes.ClassText | InputTypes.TextVariationVisiblePassword; + SetPasswordTypeface(password); } else {