mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 02:19:14 +01:00
Show update all button for extensions sheet only on a12
This commit is contained in:
parent
2dd3b112bd
commit
c5a335b88f
@ -1,6 +1,7 @@
|
||||
package eu.kanade.tachiyomi.ui.extension
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.os.Build
|
||||
import android.view.View
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
@ -23,7 +24,7 @@ class ExtensionGroupHolder(view: View, adapter: FlexibleAdapter<IFlexible<Recycl
|
||||
@SuppressLint("SetTextI18n")
|
||||
fun bind(item: ExtensionGroupItem) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user