Skip to content

Commit

Permalink
fix: ui issue in morning & evening azakar ๐Ÿ”จ๐Ÿ”จ
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza94max committed Apr 17, 2024
1 parent d48988c commit 5588351
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,7 @@ object EveningAzkarDataset {
""".trimIndent(), 7
)
)
eveningAzkar.add(
ZekerModel(
"""
ุฑูŽุถูŠู€ุชู ุจูุงู„ู„ู‡ู ุฑูŽุจู‘ูŽู€ุงู‹ ูˆูŽุจูุงู„ุฅุณู’ู„ุงู…ู ุฏูŠู€ู†ุงู‹ ูˆูŽุจูู…ูุญูŽู€ู…ู‘ูŽุฏู ุตู„ู‰ ุงู„ู„ู‡ ุนู„ูŠู‡ ูˆุณู„ู… ู†ูŽุจููŠู‘ู€ุงู‹

( ุซู„ุงุซ ู…ุฑุงุช )
ู…ู† ู‚ุงู„ู‡ุง ุญูŠู† ูŠุตุจุญ ูˆุญูŠู† ูŠู…ุณู‰ ูƒุงู† ุญู‚ุง ุนู„ู‰ ุงู„ู„ู‡ ุฃู† ูŠุฑุถูŠู‡ ูŠูˆู… ุงู„ู‚ูŠุงู…ุฉ
""".trimIndent(), 3
)
)
eveningAzkar.add(
ZekerModel(
"""ุงู„ู„ู‘ูŽู‡ูู…ู‘ูŽ ุฅูู†ู‘ููŠ ุฃูŽุนููˆุฐู ุจููƒูŽ ู…ูู†ู’ ุงู„ู’ู‡ูŽู…ู‘ู ูˆูŽุงู„ู’ุญูŽุฒูŽู†ูุŒ ูˆูŽุฃูŽุนููˆุฐู ุจููƒูŽ ู…ูู†ู’ ุงู„ู’ุนูŽุฌู’ุฒู ูˆูŽุงู„ู’ูƒูŽุณูŽู„ูุŒ ูˆูŽุฃูŽุนููˆุฐู ุจููƒูŽ ู…ูู†ู’ ุงู„ู’ุฌูุจู’ู†ู ูˆูŽุงู„ู’ุจูุฎู’ู„ูุŒ ูˆูŽุฃูŽุนููˆุฐู ุจููƒูŽ ู…ูู†ู’ ุบูŽู„ูŽุจูŽุฉู ุงู„ุฏู‘ูŽูŠู’ู†ูุŒ ูˆูŽู‚ูŽู‡ู’ุฑู ุงู„ุฑู‘ูุฌูŽุงู„ู
Expand Down Expand Up @@ -299,8 +290,8 @@ object EveningAzkarDataset {
ZekerModel(
"""ุซู… ูŠุณุชุญุถุฑ ุตูˆุฑ ู…ู† ูŠุนุฑู ู…ู† ุฅุฎูˆุงู†ู‡ ููŠ ุฐู‡ู†ู‡ ูˆูŠุณุชุดุนุฑ ุงู„ุตู„ุฉ ุงู„ุฑูˆุญูŠุฉ ุจูŠู†ู‡ ูˆุจูŠู† ู…ู† ู„ู… ูŠุนุฑูู‡ ู…ู†ู‡ู…. ุซู… ูŠุฏุนูˆ ู„ู‡ู… ุจู…ุซู„ ู‡ุฐุง ุงู„ุฏุนุงุก:
" ุงู„ู„ู‡ู… ุฅู†ูƒ ุชุนู„ู… ุฃู† ู‡ุฐู‡ ุงู„ู‚ู„ูˆุจ ู‚ุฏ ุงุฌุชู…ุนุช ุนู„ู‰ ู…ุญุจุชูƒ ูˆุงู„ุชู‚ุช ุนู„ู‰ ุทุงุนุชูƒุŒ ูˆุชูˆุญุฏุช ุนู„ู‰ ุฏุนูˆุชูƒุŒ ูˆุชุนุงู‡ุฏุช ุนู„ู‰ ู†ุตุฑุฉ ุดุฑูŠุนุชูƒ ููˆุซู‚ ุงู„ู„ู‡ ุฑุงุจุทุชู‡ุง ูˆุฃุฏู… ูˆุฏู‡ุง ูˆุงู‡ุฏู‡ุง ุณุจู„ู‡ุงุŒ ูˆุงู…ู„ุฃู‡ุง ุจู†ูˆุฑูƒ ุงู„ุฐูŠ ู„ุง ูŠุฎุจูˆุŒ ูˆุงุดุฑุญ ุตุฏูˆุฑู‡ุง ุจููŠุถ ุงู„ุฅูŠู…ุงู† ุจูƒุŒ ูˆุฌู…ูŠู„ ุงู„ุชูˆูƒู„ ุนู„ูŠูƒุŒ ูˆุฃุญูŠู‡ุง ุจู…ุนุฑูุชูƒุŒ ูˆุฃู…ุชู‡ุง ุนู„ู‰ ุงู„ุดู‡ุงุฏุฉ ููŠ ุณุจูŠู„ูƒุŒ ุฅู†ูƒ ู†ุนู… ุงู„ู…ูˆู„ู‰ ูˆู†ุนู… ุงู„ู†ุตูŠุฑุŒ ุงู„ู„ู‡ู… ุขู…ูŠู† ูˆุตู„ ุงู„ู„ู‡ู… ุนู„ู‰ ุณูŠุฏู†ุง ู…ุญู…ุฏ ูˆุนู„ู‰ ุขู„ู‡
ูˆุตุญุจู‡ ูˆุณู„ู… """", 1
" ุงู„ู„ู‡ู… ุฅู†ูƒ ุชุนู„ู… ุฃู† ู‡ุฐู‡ ุงู„ู‚ู„ูˆุจ ู‚ุฏ ุงุฌุชู…ุนุช ุนู„ู‰ ู…ุญุจุชูƒ ูˆุงู„ุชู‚ุช ุนู„ู‰ ุทุงุนุชูƒุŒ ูˆุชูˆุญุฏุช ุนู„ู‰ ุฏุนูˆุชูƒุŒ ูˆุชุนุงู‡ุฏุช ุนู„ู‰ ู†ุตุฑุฉ ุดุฑูŠุนุชูƒ ููˆุซู‚ ุงู„ู„ู‡ ุฑุงุจุทุชู‡ุง ูˆุฃุฏู… ูˆุฏู‡ุง ูˆุงู‡ุฏู‡ุง ุณุจู„ู‡ุงุŒ ูˆุงู…ู„ุฃู‡ุง ุจู†ูˆุฑูƒ ุงู„ุฐูŠ ู„ุง ูŠุฎุจูˆุŒ ูˆุงุดุฑุญ ุตุฏูˆุฑู‡ุง ุจููŠุถ ุงู„ุฅูŠู…ุงู† ุจูƒุŒ ูˆุฌู…ูŠู„ ุงู„ุชูˆูƒู„ ุนู„ูŠูƒุŒ ูˆุฃุญูŠู‡ุง ุจู…ุนุฑูุชูƒุŒ ูˆุฃู…ุชู‡ุง ุนู„ู‰ ุงู„ุดู‡ุงุฏุฉ ููŠ ุณุจูŠู„ูƒุŒ ุฅู†ูƒ ู†ุนู… ุงู„ู…ูˆู„ู‰ ูˆู†ุนู… ุงู„ู†ุตูŠุฑุŒ ุงู„ู„ู‡ู… ุขู…ูŠู† ูˆุตู„ ุงู„ู„ู‡ู… ุนู„ู‰ ุณูŠุฏู†ุง ู…ุญู…ุฏ ูˆุนู„ู‰ ุขู„ู‡ ูˆุตุญุจู‡ ูˆุณู„ู…""",
1
)
)
return eveningAzkar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ object MorningAzkarDataset {

ู‚ูู„ู’ ู‡ููˆูŽ ุงู„ู„ูŽู‘ู‡ู ุฃูŽุญูŽุฏ(1)ุงู„ู„ูŽู‘ู‡ู ุงู„ุตูŽู‘ู…ูŽุฏู(2)ู„ูŽู…ู’ ูŠูŽู„ูุฏู’ ูˆูŽู„ูŽู…ู’ ูŠููˆู„ูŽุฏู’ (3) ูˆูŽู„ูŽู…ู’ ูŠูŽูƒูู† ู„ูŽู‘ู‡ู ูƒููููˆุงู‹ ุฃูŽุญูŽุฏ(4)


( ุซู„ุงุซ ู…ุฑุงุช )
""", 3
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.islamey.hamza.wazaker.ui.HomeFragment

import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
Expand Down Expand Up @@ -72,6 +73,7 @@ class HomeFragment : Fragment() {
}
}

@SuppressLint("SetTextI18n")
private fun observeResponse() {
viewLifecycleOwner.lifecycleScope.launchWhenStarted {
hijriViewModel.hijriDate.collect { state ->
Expand All @@ -95,7 +97,7 @@ class HomeFragment : Fragment() {

viewLifecycleOwner.lifecycleScope.launch {
counterViewModel.totalCounts.collect { totalCounts ->
binding.totalZekercounts.text = getString(R.string.totalzeker, totalCounts)
binding.totalZekercounts.text = getString(R.string.totalzeker) + totalCounts
}
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_evening_azkar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="7dp"
android:layout_marginBottom="50dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/morning_item" />

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_morning_azkar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="7dp"
android:layout_marginBottom="50dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/morning_item" />

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<string name="shareapp">ู…ุดุงุฑูƒุฉ ุงู„ุชุทุจูŠู‚ </string>

// counter activity
<string name="totalzeker">ุงู„ู…ุฌู…ูˆุน ุงู„ูƒู„ูŠ: %1$d</string>
<string name="totalzeker">ุงู„ู…ุฌู…ูˆุน ุงู„ูƒู„ูŠ: </string>
<string name="totalZeker">ุงู„ู…ุฌู…ูˆุน ุงู„ูƒู„ูŠ: </string>
<string name="TotalDeleted"> ุชู… ู…ุณุญ ุงู„ู…ุฌู…ูˆุน ุงู„ูƒู„ูŠ </string>
<string name="_0">ุงู„ู…ุฌู…ูˆุน ุงู„ูƒู„ูŠ: 0</string>
Expand Down

0 comments on commit 5588351

Please sign in to comment.