From e07c49744463a9fa0166c8b115821d6421beec71 Mon Sep 17 00:00:00 2001
From: benomaire <69304392+benomaire@users.noreply.github.com>
Date: Sun, 18 Oct 2020 21:34:32 +0300
Subject: [PATCH] Use green color for qari with downloaded sura (#1466)
---
.../com/quran/labs/androidquran/ui/AudioManagerActivity.kt | 2 ++
app/src/main/res/drawable/downloaded_button_circle.xml | 5 +++++
app/src/main/res/values/colors.xml | 1 +
3 files changed, 8 insertions(+)
create mode 100644 app/src/main/res/drawable/downloaded_button_circle.xml
diff --git a/app/src/main/java/com/quran/labs/androidquran/ui/AudioManagerActivity.kt b/app/src/main/java/com/quran/labs/androidquran/ui/AudioManagerActivity.kt
index 2bcbb13ddb..79323d4427 100644
--- a/app/src/main/java/com/quran/labs/androidquran/ui/AudioManagerActivity.kt
+++ b/app/src/main/java/com/quran/labs/androidquran/ui/AudioManagerActivity.kt
@@ -149,6 +149,8 @@ class AudioManagerActivity : QuranActionBarActivity() {
R.plurals.files_downloaded,
fullyDownloaded, fullyDownloaded
)
+ if (fullyDownloaded > 0)
+ holder.image.setBackgroundResource(R.drawable.downloaded_button_circle)
}
fun getSheikhInfoForPosition(position: Int): QariDownloadInfo? {
diff --git a/app/src/main/res/drawable/downloaded_button_circle.xml b/app/src/main/res/drawable/downloaded_button_circle.xml
new file mode 100644
index 0000000000..e03df72a9f
--- /dev/null
+++ b/app/src/main/res/drawable/downloaded_button_circle.xml
@@ -0,0 +1,5 @@
+
+
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 1e93a8a370..c8c7ac1c82 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -40,6 +40,7 @@
#ffd8d8d8
#ff81c784
#ff556f79
+ #ff5e9800
#ffa50800
@color/download_button_background
#dd000000