From 2c000fc2be641f773b764d2040bb5878cc162a83 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 11 Nov 2019 08:27:48 +0200 Subject: [PATCH] showSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity()) no need to implement the same thing multiple times --- app/src/main/java/net/ktnx/mobileledger/utils/Misc.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()); } } -- 2.39.5