1
0
Fork 0
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:
M66B 2019-11-06 14:17:28 +01:00
parent 9e758bce8f
commit e12f70dd29
3 changed files with 10 additions and 3 deletions

View file

@ -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;

View file

@ -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());

View file

@ -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) {