Add language/tag to privacy URI

This commit is contained in:
M66B
2021-07-22 16:06:53 +02:00
parent efcbc8ff6a
commit 162306268c
4 changed files with 12 additions and 3 deletions

View File

@@ -778,6 +778,15 @@ public class Helper {
return prefs.getString("openpgp_provider", "org.sufficientlysecure.keychain");
}
static Uri getPrivacyUri(Context context) {
// https://translate.google.com/translate?sl=auto&tl=<language>&u=<url>
return Uri.parse(PRIVACY_URI)
.buildUpon()
.appendQueryParameter("language", Locale.getDefault().getLanguage())
.appendQueryParameter("tag", Locale.getDefault().toLanguageTag())
.build();
}
static Uri getSupportUri(Context context) {
return Uri.parse(SUPPORT_URI)
.buildUpon()