From 6bfb4e0d02e1e398854561d3ed00e7219421834c Mon Sep 17 00:00:00 2001 From: LagradOst Date: Sun, 3 Oct 2021 21:15:56 +0200 Subject: [PATCH] changed search UI --- .../java/com/lagradost/cloudstream3/MainAPI.kt | 3 ++- .../cloudstream3/ui/download/DownloadFragment.kt | 2 ++ app/src/main/res/drawable/search_background.xml | 2 +- app/src/main/res/layout/fragment_downloads.xml | 11 ++++++++++- app/src/main/res/layout/fragment_search.xml | 16 ++++++++++------ 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt b/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt index 01717a85..de7b2a91 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt @@ -41,7 +41,7 @@ object APIHolder { VMoveeProvider(), WatchCartoonOnlineProvider(), AllMoviesForYouProvider(), - AsiaFlixProvider(), + VidEmbedProvider(), VfFilmProvider() ) @@ -50,6 +50,7 @@ object APIHolder { TrailersToProvider(), // be aware that this is fuckery //NyaaProvider(), //torrents in cs3 is wack ThenosProvider(), + AsiaFlixProvider(), ) fun getApiFromName(apiName: String?): MainAPI { diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt index 21880e14..e3fb3119 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadFragment.kt @@ -5,6 +5,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.LinearLayout +import androidx.core.view.isVisible import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProvider import androidx.navigation.findNavController @@ -67,6 +68,7 @@ class DownloadFragment : Fragment() { } observe(downloadsViewModel.headerCards) { setList(it) + download_loading.isVisible = false } observe(downloadsViewModel.availableBytes) { download_free_txt?.text = diff --git a/app/src/main/res/drawable/search_background.xml b/app/src/main/res/drawable/search_background.xml index fc189d55..5740d5f0 100644 --- a/app/src/main/res/drawable/search_background.xml +++ b/app/src/main/res/drawable/search_background.xml @@ -1,5 +1,5 @@ - + diff --git a/app/src/main/res/layout/fragment_downloads.xml b/app/src/main/res/layout/fragment_downloads.xml index 2d3539f9..ec52aa23 100644 --- a/app/src/main/res/layout/fragment_downloads.xml +++ b/app/src/main/res/layout/fragment_downloads.xml @@ -9,6 +9,7 @@ android:layout_height="match_parent" android:background="?attr/darkBackground" tools:context=".ui.download.DownloadFragment"> + - + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 8e1bb222..d3ff5665 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -8,12 +8,14 @@ android:id="@+id/searchRoot" tools:context=".ui.search.SearchFragment" android:orientation="vertical" + android:background="?attr/darkBackground" android:layout_marginTop="@dimen/navbarHeight"> -