From a6f424b60420ab0bc60ccf6b6993661a85fa6cd5 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 11 Nov 2019 08:35:00 +0200 Subject: [PATCH] showSoftKeyboard: show also when the present keyboard has no keys (e.g. there is no hardware keyboard) --- app/src/main/java/net/ktnx/mobileledger/utils/Misc.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5