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

Method getSupportUri

app/src/main/java/eu/faircode/email/Helper.java:1453–1466  ·  view source on GitHub ↗
(Context context, String reference)

Source from the content-addressed store, hash-verified

1451 }
1452
1453 static Uri getSupportUri(Context context, String reference) {
1454 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
1455 String language = prefs.getString("language", null);
1456 Locale slocale = Resources.getSystem().getConfiguration().locale;
1457
1458 return Uri.parse(SUPPORT_URI)
1459 .buildUpon()
1460 .appendQueryParameter("version", getAnnotatedVersion(context))
1461 .appendQueryParameter("locale", slocale.toString())
1462 .appendQueryParameter("language", language == null ? "" : language)
1463 .appendQueryParameter("installed", Helper.hasValidFingerprint(context) ? "" : "Other")
1464 .appendQueryParameter("reference", reference)
1465 .build();
1466 }
1467
1468 static Intent getIntentIssue(Context context, String reference) {
1469 if (ActivityBilling.isPro(context) && false) {

Callers 15

onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95
onClickMethod · 0.95

Calls 6

getAnnotatedVersionMethod · 0.95
hasValidFingerprintMethod · 0.95
getStringMethod · 0.45
buildMethod · 0.45
parseMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected