From 33529cffeee0daeb0c99516e78669ef4b43be63e Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Tue, 6 Sep 2022 08:33:22 +0200 Subject: [PATCH] Revert "Fixed Iran region has no videos in feed" --- .../com/github/libretube/fragments/HomeFragment.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/com/github/libretube/fragments/HomeFragment.kt b/app/src/main/java/com/github/libretube/fragments/HomeFragment.kt index 62ca0322b..6312f9dbe 100644 --- a/app/src/main/java/com/github/libretube/fragments/HomeFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/HomeFragment.kt @@ -53,16 +53,10 @@ class HomeFragment : BaseFragment() { LocaleHelper .getDetectedCountry(requireContext(), "UK") .uppercase() - } - else { + } else { regionPref } - // Iran has no trending videos to show! - if (region == "IR"){ - region = "US" - } - binding.recview.layoutManager = GridLayoutManager(view.context, grid.toInt()) fetchJson() binding.homeRefresh.isEnabled = true @@ -91,9 +85,6 @@ class HomeFragment : BaseFragment() { runOnUiThread { binding.progressBar.visibility = View.GONE binding.recview.adapter = TrendingAdapter(response, childFragmentManager) - if (response.isEmpty()){ - Toast.makeText(context, "No videos found! Change your region and try again!", Toast.LENGTH_SHORT).show() - } } } }