Commit c1dc322f authored by Leonardo Aramaki's avatar Leonardo Aramaki

Fix device rotation leaking the keyboard

parent 42a06734
......@@ -108,7 +108,6 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiFragment.EmojiKeyboardLi
super.onActivityCreated(savedInstanceState)
attachOrGetEmojiFragment()
text_message.addTextChangedListener(EmojiFragment.EmojiTextWatcher(text_message))
text_message.requestFocus()
}
override fun onDestroyView() {
......@@ -118,11 +117,6 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiFragment.EmojiKeyboardLi
super.onDestroyView()
}
override fun onStop() {
super.onStop()
hideAllKeyboards()
}
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
if (requestCode == REQUEST_CODE_FOR_PERFORM_SAF && resultCode == Activity.RESULT_OK) {
if (resultData != null) {
......@@ -411,8 +405,6 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiFragment.EmojiKeyboardLi
}
}
}
text_message.requestFocus()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment