更新界面
This commit is contained in:
1 parent
3908ff7cf2
commit
ea36e85899
11 files changed
+197
-226
No files matched your search
@@ -3,9 +3,7 @@ package io.legato.kazusa.ui.widget
|
||||
import android.content.Context
|
||||
import android.content.res.ColorStateList
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.util.AttributeSet
|
||||
import androidx.annotation.RequiresApi
|
||||
import com.google.android.material.chip.Chip
|
||||
import com.google.android.material.chip.ChipGroup
|
||||
import com.google.android.material.color.MaterialColors
|
||||
@@ -19,8 +17,6 @@ class LabelsBar @JvmOverloads constructor(
|
||||
private val unUsedChips = arrayListOf<Chip>()
|
||||
private val usedChips = arrayListOf<Chip>()
|
||||
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
|
||||
fun setLabels(labels: List<String>) {
|
||||
clear()
|
||||
labels.forEach {
|
||||
@@ -28,7 +24,6 @@ class LabelsBar @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
|
||||
fun setLabels(labels: Array<String>) {
|
||||
setLabels(labels.toList())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user