]> git.ktnx.net Git - mobile-ledger.git/commitdiff
showSoftKeyboard: show also when the present keyboard has no keys (e.g. there is...
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:35:00 +0000 (08:35 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:35:00 +0000 (08:35 +0200)
app/src/main/java/net/ktnx/mobileledger/utils/Misc.java

index 8698e0bc346f58d1763f3c5f658387eeb0102c2e..bbfa828baa449467bbfe53b71cf05badc97aa93d 100644 (file)
@@ -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);
     }