Skip to content

Commit

Permalink
Use green color for qari with downloaded sura (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
benomaire authored Oct 18, 2020
1 parent 69566c9 commit e07c497
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/downloaded_button_circle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/downloaded_button_background" />
</shape>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<color name="audio_notification_background_color">#ffd8d8d8</color>
<color name="ayah_bookmark_color">#ff81c784</color>
<color name="download_button_background">#ff556f79</color>
<color name="downloaded_button_background">#ff5e9800</color>
<color name="cancel_button_background">#ffa50800</color>
<color name="snackbar_background_color">@color/download_button_background</color>
<color name="overlay_panel">#dd000000</color>
Expand Down

0 comments on commit e07c497

Please sign in to comment.