fix channel tabs

This commit is contained in:
Bnyro 2022-11-12 23:00:14 +01:00
parent 1d1f2d7797
commit 588f99edba
2 changed files with 75 additions and 3 deletions

View File

@ -0,0 +1,72 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.github.libretube",
"variantName": "release",
"elements": [
{
"type": "UNIVERSAL",
"filters": [],
"attributes": [],
"versionCode": 22,
"versionName": "0.7.1",
"outputFile": "app-universal-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86_64"
}
],
"attributes": [],
"versionCode": 22,
"versionName": "0.7.1",
"outputFile": "app-x86_64-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86"
}
],
"attributes": [],
"versionCode": 22,
"versionName": "0.7.1",
"outputFile": "app-x86-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "arm64-v8a"
}
],
"attributes": [],
"versionCode": 22,
"versionName": "0.7.1",
"outputFile": "app-arm64-v8a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 22,
"versionName": "0.7.1",
"outputFile": "app-armeabi-v7a-release.apk"
}
],
"elementType": "File"
}

View File

@ -190,15 +190,15 @@ class ChannelFragment : BaseFragment() {
}
tabs?.firstOrNull { it.name == "Channels" }?.let {
binding.playlists.visibility = View.VISIBLE
binding.channels.visibility = View.VISIBLE
}
tabs?.firstOrNull { it.name == "Livestreams" }?.let {
binding.playlists.visibility = View.VISIBLE
binding.livestreams.visibility = View.VISIBLE
}
tabs?.firstOrNull { it.name == "Shorts" }?.let {
binding.playlists.visibility = View.VISIBLE
binding.shorts.visibility = View.VISIBLE
}
binding.tabChips.setOnCheckedStateChangeListener { _, _ ->