Prevent rating dialog from showing on debug variant (#6255)

This commit is contained in:
Vishnu Sanal T 2022-12-30 21:51:20 +05:30 committed by GitHub
parent ebfda200e0
commit 97889a46ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}