From e8a403c66643bbc4a67760c19ac406901a3293c7 Mon Sep 17 00:00:00 2001 From: yehunxin <348226830@qq.com> Date: Sat, 19 Jun 2021 08:24:45 +0800 Subject: [PATCH] fix bug --- .../xyz/fycz/myreader/ui/activity/SearchBookActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/xyz/fycz/myreader/ui/activity/SearchBookActivity.java b/app/src/main/java/xyz/fycz/myreader/ui/activity/SearchBookActivity.java index 1c8c7dd..91ef2e6 100644 --- a/app/src/main/java/xyz/fycz/myreader/ui/activity/SearchBookActivity.java +++ b/app/src/main/java/xyz/fycz/myreader/ui/activity/SearchBookActivity.java @@ -230,9 +230,7 @@ public class SearchBookActivity extends BaseActivity { initHistoryList(); App.getHandler().postDelayed(() -> { binding.etSearchKey.requestFocus(); - InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); - imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED); - }, 400); + }, 200); } @Override