From 2395dc0b84be0997d5ea1724f7f6bd0066c78b81 Mon Sep 17 00:00:00 2001 From: Ragaeeb Haq <7464039+ragaeeb@users.noreply.github.com> Date: Thu, 1 May 2014 00:14:02 -0400 Subject: [PATCH] GCR v3.5.2.0: Issue 160: If user tries playing another ayat from context menu while an ayat is already playing both of them are showing the orange playing state --- assets/SurahPage.qml | 4 +++- assets/VersesListView.qml | 1 + translations/Quran10.ts | 40 +++++++++++++++++++-------------------- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/assets/SurahPage.qml b/assets/SurahPage.qml index d5601b67..4fb237f8 100644 --- a/assets/SurahPage.qml +++ b/assets/SurahPage.qml @@ -237,7 +237,9 @@ Page ++surahId; } else { --surahId; - } + } + + player.stop(); } } diff --git a/assets/VersesListView.qml b/assets/VersesListView.qml index f05c2835..e91c32fc 100644 --- a/assets/VersesListView.qml +++ b/assets/VersesListView.qml @@ -57,6 +57,7 @@ ListView function play(from, to) { + clearPrevious(); previousPlayedIndex = -1; recitation.downloadAndPlay(chapterNumber, from, to); } diff --git a/translations/Quran10.ts b/translations/Quran10.ts index 43ca4cf8..b42263d5 100644 --- a/translations/Quran10.ts +++ b/translations/Quran10.ts @@ -536,22 +536,22 @@ You can also select an ayat above the current one to start there and end at the - + Translation Font Size - + The translation font size will be small - + The translation font size will be medium - + The translation font size will be large @@ -688,7 +688,7 @@ https://www.youtube.com/watch?v=BDY8i9VQeZM - + Edit @@ -803,7 +803,7 @@ https://en.wikipedia.org/wiki/Shadda - + %1 (%2) @@ -927,7 +927,7 @@ May Allah reward you, and bless you and your family. - + %1 @@ -1000,63 +1000,63 @@ May Allah reward you, and bless you and your family. VersesListView - + %1:%2-%3 - + Play - + None selected - - + + %1:%2 - + Enter a name for this bookmark - + Enter a name for this shortcut: - + Enter Name - + Enter a meaningful name... - + OK - + Cancel - + Bookmarked %1:%2 - + ayahs