From c36616ab927d88395ca1d032b0d6b7b98af24e10 Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Thu, 21 Nov 2019 23:19:20 +0100 Subject: [PATCH] Promote Favorites tab to stable. --- .../com/github/apognu/otter/adapters/BrowseTabsAdapter.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/apognu/otter/adapters/BrowseTabsAdapter.kt b/app/src/main/java/com/github/apognu/otter/adapters/BrowseTabsAdapter.kt index f4bc6da..d55eb5d 100644 --- a/app/src/main/java/com/github/apognu/otter/adapters/BrowseTabsAdapter.kt +++ b/app/src/main/java/com/github/apognu/otter/adapters/BrowseTabsAdapter.kt @@ -8,16 +8,12 @@ import com.github.apognu.otter.fragments.AlbumsGridFragment import com.github.apognu.otter.fragments.ArtistsFragment import com.github.apognu.otter.fragments.FavoritesFragment import com.github.apognu.otter.fragments.PlaylistsFragment -import com.preference.PowerPreference class BrowseTabsAdapter(val context: Fragment, manager: FragmentManager) : FragmentPagerAdapter(manager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) { var tabs = mutableListOf() override fun getCount(): Int { - return when (PowerPreference.getDefaultFile().getBoolean("experiments", false)) { - true -> 4 - false -> 3 - } + return 4 } override fun getItem(position: Int): Fragment {