From 05f18472ff345cf185eb55812c92455aab3f592c Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 23 Mar 2021 09:21:12 +0100 Subject: Anime : Added a search button replacing return on the keyboard. Minor changes on other fils. --- app/src/main/java/xyz/adjutor/aniki/manga/search/SearchMangaPage.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/main/java/xyz/adjutor/aniki/manga') 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(R.id.tiet_query) + view.findViewById(R.id.tiet_query) .setOnEditorActionListener(OnEditorActionListener { v, actionId, event -> if (actionId == EditorInfo.IME_ACTION_SEARCH) { val userInput = -- cgit v1.2.3