MCPcopy Create free account
hub / github.com/M66B/FairEmail / hasPlayStore

Method hasPlayStore

app/src/main/java/eu/faircode/email/Helper.java:686–700  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

684 }
685
686 static boolean hasPlayStore(Context context) {
687 if (hasPlayStore == null)
688 try {
689 PackageManager pm = context.getPackageManager();
690 pm.getPackageInfo("com.android.vending", 0);
691 hasPlayStore = true;
692 } catch (PackageManager.NameNotFoundException ex) {
693 Log.i(ex);
694 hasPlayStore = false;
695 } catch (Throwable ex) {
696 Log.e(ex);
697 hasPlayStore = false;
698 }
699 return hasPlayStore;
700 }
701
702 static boolean isSecure(Context context) {
703 try {

Callers 7

checkReviewMethod · 0.95
setOptionsMethod · 0.95
onCreateViewMethod · 0.95
reportNoViewerMethod · 0.95
checkUpdateMethod · 0.95
getAppInfoMethod · 0.95
onPurchaseErrorMethod · 0.95

Calls 2

iMethod · 0.95
eMethod · 0.95

Tested by

no test coverage detected