From 273c8a19b8853d295010faad0481f82ba2b17915 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 18 Jun 2019 10:30:56 +0200 Subject: [PATCH] Fix UI issue notification troubleshot screen --- ...otificationTroubleshootRecyclerViewAdapter.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/settings/troubleshoot/NotificationTroubleshootRecyclerViewAdapter.kt b/vector/src/main/java/im/vector/riotredesign/features/settings/troubleshoot/NotificationTroubleshootRecyclerViewAdapter.kt index 696383f861..779ab8fc9a 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/settings/troubleshoot/NotificationTroubleshootRecyclerViewAdapter.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/settings/troubleshoot/NotificationTroubleshootRecyclerViewAdapter.kt @@ -23,6 +23,7 @@ import android.widget.Button import android.widget.ImageView import android.widget.ProgressBar import android.widget.TextView +import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import butterknife.BindView import butterknife.ButterKnife @@ -67,24 +68,23 @@ class NotificationTroubleshootRecyclerViewAdapter(val tests: ArrayList { - titleText.setTextColor(ThemeUtils.getColor(context, R.attr.vctr_default_text_hint_color)) - descriptionText.setTextColor(ThemeUtils.getColor(context, R.attr.vctr_default_text_hint_color)) + titleText.setTextColor(ThemeUtils.getColor(context, R.attr.riotx_text_secondary)) progressBar.visibility = View.INVISIBLE statusIconImage.visibility = View.VISIBLE statusIconImage.setImageResource(R.drawable.unit_test) } - TroubleshootTest.TestStatus.RUNNING -> { + TroubleshootTest.TestStatus.RUNNING -> { progressBar.visibility = View.VISIBLE statusIconImage.visibility = View.INVISIBLE } - TroubleshootTest.TestStatus.FAILED -> { + TroubleshootTest.TestStatus.FAILED -> { progressBar.visibility = View.INVISIBLE statusIconImage.visibility = View.VISIBLE statusIconImage.setImageResource(R.drawable.unit_test_ko) @@ -93,9 +93,9 @@ class NotificationTroubleshootRecyclerViewAdapter(val tests: ArrayList { + TroubleshootTest.TestStatus.SUCCESS -> { progressBar.visibility = View.INVISIBLE statusIconImage.visibility = View.VISIBLE statusIconImage.setImageResource(R.drawable.unit_test_ok)