From d5dd918f2c8c0f29c70379fce6e40b79141c798a Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 2 Mar 2021 14:36:38 +0100 Subject: Added searching for animes. Auto keyboard hiding method when submitting. --- .../adjutor/aniki/manga/search/SearchMangaPage.kt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 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 40f9633..f79db36 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 @@ -1,9 +1,11 @@ package xyz.adjutor.aniki.manga.search +import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import android.view.inputmethod.InputMethodManager import android.widget.Button import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController @@ -18,6 +20,7 @@ import retrofit2.Callback import retrofit2.Response import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory +import xyz.adjutor.aniki.MainActivity import xyz.adjutor.aniki.R class SearchMangaPage : Fragment() { @@ -32,9 +35,8 @@ class SearchMangaPage : Fragment() { savedInstanceState: Bundle? ): View? { // Inflate the layout for this fragment - val view = inflater.inflate(R.layout.search_manga_page, container, false) - return view + return inflater.inflate(R.layout.search_manga_page, container, false) } @@ -48,10 +50,22 @@ class SearchMangaPage : Fragment() { view.findViewById