Commit e6f638d2 by Paktalin

Fixed drawerLayout bug and removed hideKeyboard when word is submitted

parent d0ab0e95
...@@ -67,6 +67,7 @@ class AddWordFragment : WordFragment() { ...@@ -67,6 +67,7 @@ class AddWordFragment : WordFragment() {
mainActivity.removeProgressBar() mainActivity.removeProgressBar()
val wordItem = WordItem(wordPojo, documentId, vocabularyId) val wordItem = WordItem(wordPojo, documentId, vocabularyId)
updateRecycleView(wordItem) updateRecycleView(wordItem)
word.requestFocus()
} }
companion object { private val TAG = "VN/" + AddWordFragment::class.java.simpleName } companion object { private val TAG = "VN/" + AddWordFragment::class.java.simpleName }
......
...@@ -33,7 +33,6 @@ abstract class WordFragment : Fragment() { ...@@ -33,7 +33,6 @@ abstract class WordFragment : Fragment() {
} }
fun submitWord() { fun submitWord() {
mainActivity.hideKeyboardNotFromActivity(mainActivity)
gone(mainActivity.btnSubmitLayout) gone(mainActivity.btnSubmitLayout)
val word = word.text.toString() val word = word.text.toString()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawerLayout" android:id="@+id/drawerLayout"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:openDrawer="start" tools:openDrawer="start"
android:background="@drawable/wood" android:background="@drawable/wood"
......
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 sign in to comment