Prevent rating dialog from showing on debug variant (#6255)
This commit is contained in:
parent
ebfda200e0
commit
97889a46ed
|
@ -12,6 +12,8 @@ import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
|
|
||||||
|
import de.danoeh.antennapod.BuildConfig;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.core.util.IntentUtils;
|
import de.danoeh.antennapod.core.util.IntentUtils;
|
||||||
|
|
||||||
|
@ -85,7 +87,7 @@ public class RatingDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean shouldShow() {
|
private static boolean shouldShow() {
|
||||||
if (rated()) {
|
if (rated() || BuildConfig.DEBUG) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.review.ReviewManagerFactory;
|
||||||
import com.google.android.play.core.tasks.Task;
|
import com.google.android.play.core.tasks.Task;
|
||||||
|
|
||||||
|
import de.danoeh.antennapod.BuildConfig;
|
||||||
|
|
||||||
public class RatingDialog {
|
public class RatingDialog {
|
||||||
|
|
||||||
private RatingDialog() {
|
private RatingDialog() {
|
||||||
|
@ -108,7 +110,7 @@ public class RatingDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean shouldShow() {
|
private static boolean shouldShow() {
|
||||||
if (rated()) {
|
if (rated() || BuildConfig.DEBUG) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue