mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-28 09:38:14 +03:00
commit
0de1e6e44d
1 changed files with 7 additions and 3 deletions
|
@ -715,9 +715,13 @@ public class ConversationsListController extends BaseController implements Searc
|
||||||
});
|
});
|
||||||
|
|
||||||
recyclerView.setOnTouchListener((v, event) -> {
|
recyclerView.setOnTouchListener((v, event) -> {
|
||||||
|
if (isAttached() && (!isBeingDestroyed() || !isDestroyed())) {
|
||||||
InputMethodManager imm =
|
InputMethodManager imm =
|
||||||
(InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
(InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
if (imm != null) {
|
||||||
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue