Promote Favorites tab to stable.

This commit is contained in:
Antoine POPINEAU 2019-11-21 23:19:20 +01:00
parent 0cb4bda212
commit c36616ab92
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 1 additions and 5 deletions

View File

@ -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<Fragment>()
override fun getCount(): Int {
return when (PowerPreference.getDefaultFile().getBoolean("experiments", false)) {
true -> 4
false -> 3
}
return 4
}
override fun getItem(position: Int): Fragment {