From: Damyan Ivanov Date: Mon, 11 Nov 2019 06:35:00 +0000 (+0200) Subject: showSoftKeyboard: show also when the present keyboard has no keys (e.g. there is... X-Git-Tag: v0.11.0~76 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a6f424b60420ab0bc60ccf6b6993661a85fa6cd5;p=mobile-ledger.git showSoftKeyboard: show also when the present keyboard has no keys (e.g. there is no hardware keyboard) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java b/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java index 8698e0bc..bbfa828b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java @@ -31,7 +31,8 @@ public class Misc { // make the keyboard appear Configuration cf = activity.getResources() .getConfiguration(); - if (cf.keyboardHidden == Configuration.KEYBOARDHIDDEN_YES) + if (cf.keyboard == Configuration.KEYBOARD_NOKEYS || + cf.keyboardHidden == Configuration.KEYBOARDHIDDEN_YES) activity.getWindow() .setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); }