Added OpenPGP provider selection

This commit is contained in:
M66B
2019-11-08 13:31:01 +01:00
parent 2429f0b26b
commit ec99d6a0f0
4 changed files with 70 additions and 5 deletions

View File

@@ -284,6 +284,11 @@ public class Helper {
return intent;
}
static String getOpenKeychainPackage(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return prefs.getString("openpgp_provider", "org.sufficientlysecure.keychain");
}
static Intent getIntentIssue(Context context) {
if (ActivityBilling.isPro(context)) {
String version = BuildConfig.VERSION_NAME + "/" +
@@ -892,10 +897,6 @@ public class Helper {
prefs.edit().remove("last_authentication").apply();
}
static String getOpenKeychainPackage(Context context) {
return "org.sufficientlysecure.keychain";
}
// Miscellaneous
static <T> List<List<T>> chunkList(List<T> list, int size) {