mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Simplification
This commit is contained in:
parent
177826b64d
commit
fdf9347693
1 changed files with 1 additions and 10 deletions
|
@ -838,16 +838,7 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isPlayStoreInstall(Context context) {
|
static boolean isPlayStoreInstall(Context context) {
|
||||||
if (BuildConfig.PLAY_STORE_RELEASE)
|
return BuildConfig.PLAY_STORE_RELEASE;
|
||||||
return true;
|
|
||||||
if (false && BuildConfig.DEBUG)
|
|
||||||
return true;
|
|
||||||
try {
|
|
||||||
return "com.android.vending".equals(context.getPackageManager().getInstallerPackageName(context.getPackageName()));
|
|
||||||
} catch (Throwable ex) {
|
|
||||||
Log.e(ex);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String sha256(String data) throws NoSuchAlgorithmException {
|
static String sha256(String data) throws NoSuchAlgorithmException {
|
||||||
|
|
Loading…
Reference in a new issue