mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Get OpenKeychain package
This commit is contained in:
parent
9e758bce8f
commit
e12f70dd29
3 changed files with 10 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue