diff --git a/app/src/main/java/com/stevesoltys/seedvault/restore/install/InstallProgressAdapter.kt b/app/src/main/java/com/stevesoltys/seedvault/restore/install/InstallProgressAdapter.kt index e92a4f7bd..0082e1c39 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/restore/install/InstallProgressAdapter.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/restore/install/InstallProgressAdapter.kt @@ -5,6 +5,7 @@ package com.stevesoltys.seedvault.restore.install +import android.content.res.ColorStateList import android.graphics.drawable.Drawable import android.view.LayoutInflater import android.view.View @@ -12,6 +13,7 @@ import android.view.View.GONE import android.view.View.INVISIBLE import android.view.View.VISIBLE import android.view.ViewGroup +import androidx.core.content.ContextCompat import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView.Adapter @@ -102,6 +104,9 @@ internal class InstallProgressAdapter( } FAILED -> { appStatus.setImageResource(R.drawable.ic_error_red) + appStatus.imageTintList = ColorStateList.valueOf( + ContextCompat.getColor(context, R.color.red) + ) appStatus.visibility = VISIBLE appStatus.contentDescription = context.getString(R.string.restore_app_status_install_error) @@ -117,6 +122,9 @@ internal class InstallProgressAdapter( } FAILED_SYSTEM_APP -> { appStatus.setImageResource(R.drawable.ic_error_red) + appStatus.imageTintList = ColorStateList.valueOf( + ContextCompat.getColor(context, R.color.red) + ) appStatus.contentDescription = context.getString(R.string.restore_app_status_install_error) appStatus.visibility = VISIBLE diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/AppViewHolder.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/AppViewHolder.kt index e5448d0f9..080490893 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/ui/AppViewHolder.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/ui/AppViewHolder.kt @@ -7,6 +7,7 @@ package com.stevesoltys.seedvault.ui import android.content.Context import android.content.pm.PackageManager +import android.content.res.ColorStateList import android.view.View import android.view.View.GONE import android.view.View.INVISIBLE @@ -14,6 +15,7 @@ import android.view.View.VISIBLE import android.widget.ImageView import android.widget.ProgressBar import android.widget.TextView +import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import com.google.android.material.checkbox.MaterialCheckBox import com.stevesoltys.seedvault.R @@ -63,6 +65,9 @@ internal abstract class AppViewHolder(protected val v: View) : RecyclerView.View } FAILED -> { appStatus.setImageResource(R.drawable.ic_error_red) + appStatus.imageTintList = ColorStateList.valueOf( + ContextCompat.getColor(context, R.color.red) + ) contentDescription = context.getString( if (isRestore) R.string.restore_app_status_failed else R.string.notification_failed_title