mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Click encypt title to open OpneKeychain app
This commit is contained in:
@@ -517,9 +517,13 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
static boolean isOpenKeychainInstalled(Context context) {
|
||||
static String getOpenKeychainPackage(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String provider = prefs.getString("openpgp_provider", "org.sufficientlysecure.keychain");
|
||||
return prefs.getString("openpgp_provider", "org.sufficientlysecure.keychain");
|
||||
}
|
||||
|
||||
static boolean isOpenKeychainInstalled(Context context) {
|
||||
String provider = getOpenKeychainPackage(context);
|
||||
|
||||
PackageManager pm = context.getPackageManager();
|
||||
Intent intent = new Intent(OpenPgpApi.SERVICE_INTENT_2);
|
||||
@@ -833,11 +837,6 @@ public class Helper {
|
||||
view(context, Uri.parse(base + "#user-content-faq" + question), "text/html", false, false);
|
||||
}
|
||||
|
||||
static String getOpenKeychainPackage(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user