From: Damyan Ivanov Date: Mon, 11 Nov 2019 06:27:48 +0000 (+0200) Subject: showSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity()) X-Git-Tag: v0.11.0~79 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=2c000fc2be641f773b764d2040bb5878cc162a83;p=mobile-ledger.git showSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity()) no need to implement the same thing multiple times --- 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 3fae49f1..16ad9e2c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Misc.java @@ -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()); } }