]> git.ktnx.net Git - mobile-ledger.git/commitdiff
showSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity())
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:27:48 +0000 (08:27 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:27:48 +0000 (08:27 +0200)
no need to implement the same thing multiple times

app/src/main/java/net/ktnx/mobileledger/utils/Misc.java

index 3fae49f1665a6e28bd583a67d5564e351b9878b7..16ad9e2c3c933cc769077031170fce86d899101c 100644 (file)
@@ -32,9 +32,6 @@ public class Misc {
                 .setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
     }
     public static void showSoftKeyboard(Fragment fragment) {
-        // make the keyboard appear
-        fragment.getActivity()
-                .getWindow()
-                .setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
+        showSoftKeyboard(fragment.getActivity());
     }
 }