use MaterialColors.getColor instead of ThemeUtils (fixes build)
This commit is contained in:
parent
33e4da7abb
commit
468f8f1b14
1 changed files with 2 additions and 2 deletions
|
@ -8,6 +8,7 @@ import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
import com.google.android.material.color.MaterialColors
|
||||||
import com.keylesspalace.tusky.R
|
import com.keylesspalace.tusky.R
|
||||||
import com.keylesspalace.tusky.adapter.PollAdapter
|
import com.keylesspalace.tusky.adapter.PollAdapter
|
||||||
import com.keylesspalace.tusky.adapter.PollAdapter.Companion.MULTIPLE
|
import com.keylesspalace.tusky.adapter.PollAdapter.Companion.MULTIPLE
|
||||||
|
@ -18,7 +19,6 @@ import com.keylesspalace.tusky.entity.StatusEdit
|
||||||
import com.keylesspalace.tusky.interfaces.LinkListener
|
import com.keylesspalace.tusky.interfaces.LinkListener
|
||||||
import com.keylesspalace.tusky.util.AbsoluteTimeFormatter
|
import com.keylesspalace.tusky.util.AbsoluteTimeFormatter
|
||||||
import com.keylesspalace.tusky.util.BindingHolder
|
import com.keylesspalace.tusky.util.BindingHolder
|
||||||
import com.keylesspalace.tusky.util.ThemeUtils
|
|
||||||
import com.keylesspalace.tusky.util.aspectRatios
|
import com.keylesspalace.tusky.util.aspectRatios
|
||||||
import com.keylesspalace.tusky.util.decodeBlurHash
|
import com.keylesspalace.tusky.util.decodeBlurHash
|
||||||
import com.keylesspalace.tusky.util.emojify
|
import com.keylesspalace.tusky.util.emojify
|
||||||
|
@ -147,7 +147,7 @@ class ViewEditsAdapter(
|
||||||
val placeholder: Drawable = if (blurhash != null && useBlurhash) {
|
val placeholder: Drawable = if (blurhash != null && useBlurhash) {
|
||||||
decodeBlurHash(context, blurhash)
|
decodeBlurHash(context, blurhash)
|
||||||
} else {
|
} else {
|
||||||
ColorDrawable(ThemeUtils.getColor(context, R.attr.colorBackgroundAccent))
|
ColorDrawable(MaterialColors.getColor(imageView, R.attr.colorBackgroundAccent))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attachment.previewUrl.isNullOrEmpty()) {
|
if (attachment.previewUrl.isNullOrEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue