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() - } } } }