aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/manga/search
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-03-23 09:21:12 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-03-23 09:21:12 +0100
commit05f18472ff345cf185eb55812c92455aab3f592c (patch)
treecf4c9a86cf0ffaef9216804b9b12ef5a14236b97 /app/src/main/java/xyz/adjutor/aniki/manga/search
parent9159505004b7d55964653747decd313bcdd6a801 (diff)
Anime : Added a search button replacing return on the keyboard.
Minor changes on other fils.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/manga/search')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt
index 7866151..d236887 100644
--- a/app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt
@@ -8,7 +8,6 @@ import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.Button
-import android.widget.EditText
import android.widget.TextView.OnEditorActionListener
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
@@ -58,7 +57,7 @@ class SearchMangaPage : Fragment() {
makeApiCall(view, baseUrl, userInput)
}
- view.findViewById<EditText>(R.id.tiet_query)
+ view.findViewById<TextInputEditText>(R.id.tiet_query)
.setOnEditorActionListener(OnEditorActionListener { v, actionId, event ->
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
val userInput =