forked from upstream-mirrors/quik
Remove obsolete checks for API 23
This commit is contained in:
@@ -35,7 +35,6 @@ import com.moez.QKSMS.util.GlideApp
|
||||
import com.moez.QKSMS.util.tryOrNull
|
||||
import javax.inject.Inject
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
class QkChooserTargetService : ChooserTargetService() {
|
||||
|
||||
@Inject lateinit var conversationRepo: ConversationRepository
|
||||
|
||||
@@ -63,9 +63,6 @@ fun ProgressBar.setTint(color: Int) {
|
||||
fun View.setBackgroundTint(color: Int) {
|
||||
|
||||
// API 21 doesn't support this
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1) {
|
||||
background?.setColorFilter(color, PorterDuff.Mode.SRC_IN)
|
||||
}
|
||||
|
||||
backgroundTintList = ColorStateList.valueOf(color)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user