mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Small improvement
This commit is contained in:
@@ -1493,8 +1493,7 @@ public class Helper {
|
||||
|
||||
static void showKeyboard(final View view) {
|
||||
final Context context = view.getContext();
|
||||
InputMethodManager imm =
|
||||
(InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE);
|
||||
InputMethodManager imm = Helper.getSystemService(context, InputMethodManager.class);
|
||||
if (imm == null)
|
||||
return;
|
||||
|
||||
@@ -1513,8 +1512,7 @@ public class Helper {
|
||||
|
||||
static void hideKeyboard(final View view) {
|
||||
final Context context = view.getContext();
|
||||
InputMethodManager imm =
|
||||
(InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE);
|
||||
InputMethodManager imm = Helper.getSystemService(context, InputMethodManager.class);
|
||||
if (imm == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user