From 97889a46ed2f9e6e5fc6144b84f1c2367d311a05 Mon Sep 17 00:00:00 2001 From: Vishnu Sanal T <50027064+VishnuSanal@users.noreply.github.com> Date: Fri, 30 Dec 2022 21:51:20 +0530 Subject: [PATCH] Prevent rating dialog from showing on debug variant (#6255) --- .../free/java/de/danoeh/antennapod/dialog/RatingDialog.java | 4 +++- .../play/java/de/danoeh/antennapod/dialog/RatingDialog.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/free/java/de/danoeh/antennapod/dialog/RatingDialog.java b/app/src/free/java/de/danoeh/antennapod/dialog/RatingDialog.java index 3973a538d..e7951626e 100644 --- a/app/src/free/java/de/danoeh/antennapod/dialog/RatingDialog.java +++ b/app/src/free/java/de/danoeh/antennapod/dialog/RatingDialog.java @@ -12,6 +12,8 @@ import java.util.concurrent.TimeUnit; import androidx.appcompat.app.AlertDialog; import com.google.android.material.dialog.MaterialAlertDialogBuilder; + +import de.danoeh.antennapod.BuildConfig; import de.danoeh.antennapod.R; import de.danoeh.antennapod.core.util.IntentUtils; @@ -85,7 +87,7 @@ public class RatingDialog { } private static boolean shouldShow() { - if (rated()) { + if (rated() || BuildConfig.DEBUG) { return false; } diff --git a/app/src/play/java/de/danoeh/antennapod/dialog/RatingDialog.java b/app/src/play/java/de/danoeh/antennapod/dialog/RatingDialog.java index 66072e2fa..23b74b07e 100644 --- a/app/src/play/java/de/danoeh/antennapod/dialog/RatingDialog.java +++ b/app/src/play/java/de/danoeh/antennapod/dialog/RatingDialog.java @@ -16,6 +16,8 @@ import com.google.android.play.core.review.ReviewManager; import com.google.android.play.core.review.ReviewManagerFactory; import com.google.android.play.core.tasks.Task; +import de.danoeh.antennapod.BuildConfig; + public class RatingDialog { private RatingDialog() { @@ -108,7 +110,7 @@ public class RatingDialog { } private static boolean shouldShow() { - if (rated()) { + if (rated() || BuildConfig.DEBUG) { return false; }