diff --git a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/LibraryFragment.kt b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/LibraryFragment.kt index e69fe4d..025bc2f 100644 --- a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/LibraryFragment.kt +++ b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/LibraryFragment.kt @@ -30,7 +30,7 @@ class LibraryFragment : Fragment() { ): View { binding = FragmentLibraryBinding.inflate(inflater) (activity as MainActivity).apply { - this@LibraryFragment.api = api + this@LibraryFragment.api = getApi() this@LibraryFragment.player = player } return binding.root diff --git a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/PlaylistFragment.kt b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/PlaylistFragment.kt index 77b2356..5f13aea 100644 --- a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/PlaylistFragment.kt +++ b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/PlaylistFragment.kt @@ -35,7 +35,7 @@ class PlaylistFragment : Fragment() { id = it.getString("id")!! } (activity as MainActivity).apply { - this@PlaylistFragment.api = api + this@PlaylistFragment.api = getApi() supportActionBar?.title = "" } return binding.root diff --git a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/RecyclerViewFragment.kt b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/RecyclerViewFragment.kt index 82bcc7d..2935004 100644 --- a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/RecyclerViewFragment.kt +++ b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/RecyclerViewFragment.kt @@ -36,7 +36,7 @@ class RecyclerViewFragment : Fragment() { ): View { binding = FragmentRecyclerviewBinding.inflate(inflater) (activity as MainActivity).apply { - this@RecyclerViewFragment.api = api + this@RecyclerViewFragment.api = getApi() this@RecyclerViewFragment.player = player } type = arguments?.getString("type")!! diff --git a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SearchFragment.kt b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SearchFragment.kt index cfe17c1..133b318 100644 --- a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SearchFragment.kt +++ b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SearchFragment.kt @@ -35,7 +35,7 @@ class SearchFragment : Fragment() { ): View { binding = FragmentSearchBinding.inflate(inflater) (activity as MainActivity).apply { - this@SearchFragment.api = api + this@SearchFragment.api = getApi() this@SearchFragment.player = player } query = arguments?.getString("query") ?: "asdf" diff --git a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SubscriptionsFragment.kt b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SubscriptionsFragment.kt index e8d44a1..c4b88b0 100644 --- a/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SubscriptionsFragment.kt +++ b/app/src/main/java/dev/kuylar/lighttube/ui/fragment/SubscriptionsFragment.kt @@ -34,7 +34,7 @@ class SubscriptionsFragment : Fragment() { ): View { binding = FragmentSubscriptionsBinding.inflate(inflater) (activity as MainActivity).apply { - this@SubscriptionsFragment.api = api + this@SubscriptionsFragment.api = getApi() this@SubscriptionsFragment.player = player } return binding.root