Commit e6f638d2 by Paktalin

Fixed drawerLayout bug and removed hideKeyboard when word is submitted

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