From 81f8c0f4fe2e208d95d6d35b3fa503add0820759 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Tue, 3 Dec 2024 20:33:17 +0300 Subject: [PATCH] show potential warnings --- .../myplanet/ui/dashboard/DashboardActivity.kt | 12 ++++++------ .../myplanet/ui/dashboard/DashboardActivity.kt.lite | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt index 9da47b47b5..80d1e3d79d 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt @@ -372,9 +372,9 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N if (isCompleted && !hasShownCongrats) { editor.putBoolean("has_shown_congrats", true).apply() val markdownContent = """ - Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** + Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** /$500 - Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** + Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** /$11 ### ¡Felicidades! Reto Completado
""".trimIndent() MarkdownDialog.newInstance(markdownContent, courseStatus, voiceCount, allVoiceCount, hasUnfinishedSurvey).show(supportFragmentManager, "markdown_dialog") @@ -386,11 +386,11 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N "" } val markdownContent = """ - Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** + Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** /$500 - Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** - ### $courseTaskDone
- ### $voiceTaskDone Comparte tu opinión en Nuestras Voces. $voicesText
+ Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** /$11 + ### $courseTaskDone $1 por encuesta
+ ### $voiceTaskDone Comparte tu opinión en Nuestras Voces.[$2/voz] $voicesText
### $syncTaskDone Recuerda sincronizar la aplicación móvil.
""".trimIndent() MarkdownDialog.newInstance(markdownContent, courseStatus, voiceCount, allVoiceCount, hasUnfinishedSurvey) diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite index ef0400fd80..ff850517f4 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite +++ b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite @@ -372,9 +372,9 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N if (isCompleted && !hasShownCongrats) { editor.putBoolean("has_shown_congrats", true).apply() val markdownContent = """ - Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** + Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** /$500 - Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** + Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** /$11 ### ¡Felicidades! Reto Completado
""".trimIndent() MarkdownDialog.newInstance(markdownContent, courseStatus, voiceCount, allVoiceCount, hasUnfinishedSurvey).show(supportFragmentManager, "markdown_dialog") @@ -386,11 +386,11 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N "" } val markdownContent = """ - Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** + Ingresos totales de la comunidad: **$${calculateCommunityProgress(allVoiceCount, hasUnfinishedSurvey)}** /$500 - Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** - ### $courseTaskDone
- ### $voiceTaskDone Comparte tu opinión en Nuestras Voces. $voicesText
+ Tus ganancias totales: **$${calculateIndividualProgress(voiceCount, hasUnfinishedSurvey)}** /$11 + ### $courseTaskDone $1 por encuesta
+ ### $voiceTaskDone Comparte tu opinión en Nuestras Voces.[$2/voz] $voicesText
### $syncTaskDone Recuerda sincronizar la aplicación móvil.
""".trimIndent() MarkdownDialog.newInstance(markdownContent, courseStatus, voiceCount, allVoiceCount, hasUnfinishedSurvey)