Show update all button for extensions sheet only on a12

This commit is contained in:
Jays2Kings 2021-07-19 00:24:08 -04:00
parent 2dd3b112bd
commit c5a335b88f

View File

@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.ui.extension package eu.kanade.tachiyomi.ui.extension
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.os.Build
import android.view.View import android.view.View
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
@ -23,7 +24,7 @@ class ExtensionGroupHolder(view: View, adapter: FlexibleAdapter<IFlexible<Recycl
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
fun bind(item: ExtensionGroupItem) { fun bind(item: ExtensionGroupItem) {
binding.title.text = item.name binding.title.text = item.name
binding.extButton.isVisible = item.canUpdate != null binding.extButton.isVisible = item.canUpdate != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
binding.extButton.isEnabled = item.canUpdate == true binding.extButton.isEnabled = item.canUpdate == true
} }
} }