From aef181b869d3fa1974dd42cad865cbe603f5b5e8 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 12 Aug 2019 15:19:42 +0200 Subject: [PATCH] Limit devices for Play store builds only --- app/src/main/java/eu/faircode/email/ActivityMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityMain.java b/app/src/main/java/eu/faircode/email/ActivityMain.java index 9c236a2de8..b658fe9457 100644 --- a/app/src/main/java/eu/faircode/email/ActivityMain.java +++ b/app/src/main/java/eu/faircode/email/ActivityMain.java @@ -180,7 +180,8 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack } private boolean isSupportedDevice() { - if ("Amazon".equals(Build.BRAND) && Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { + if (Helper.isPlayStoreInstall(this) && + "Amazon".equals(Build.BRAND) && Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { /* java.lang.IllegalArgumentException: Comparison method violates its general contract! java.lang.IllegalArgumentException: Comparison method violates its general contract!