mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-14 21:13:37 +02:00
Get OpenKeychain package
This commit is contained in:
@@ -55,7 +55,6 @@ import android.os.Handler;
|
||||
import android.os.LocaleList;
|
||||
import android.provider.ContactsContract;
|
||||
import android.provider.MediaStore;
|
||||
import android.provider.OpenableColumns;
|
||||
import android.text.Html;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
@@ -655,7 +654,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
tvNoInternetAttachments.setVisibility(View.GONE);
|
||||
tvUnusedInlineImages.setVisibility(View.GONE);
|
||||
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), "org.sufficientlysecure.keychain");
|
||||
pgpService = new OpenPgpServiceConnection(
|
||||
getContext(),
|
||||
Helper.getOpenKeychainPackage(getContext()));
|
||||
pgpService.bindToService();
|
||||
|
||||
return view;
|
||||
|
||||
@@ -1046,7 +1046,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
}
|
||||
});
|
||||
|
||||
pgpService = new OpenPgpServiceConnection(getContext(), "org.sufficientlysecure.keychain");
|
||||
pgpService = new OpenPgpServiceConnection(
|
||||
getContext(),
|
||||
Helper.getOpenKeychainPackage(getContext()));
|
||||
pgpService.bindToService();
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
|
||||
@@ -892,6 +892,10 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user