Small improvements

This commit is contained in:
M66B 2019-12-30 16:52:47 +01:00
parent ef1683e70c
commit 16691c2e3d
2 changed files with 3 additions and 1 deletions

View File

@ -810,7 +810,7 @@ public class FragmentCompose extends FragmentBase {
public void onDestroyView() {
adapter = null;
if (pgpService != null)
if (pgpService != null && pgpService.isBound())
pgpService.unbindFromService();
super.onDestroyView();
@ -1894,6 +1894,7 @@ public class FragmentCompose extends FragmentBase {
onPgp(intent);
} else if (result instanceof PendingIntent)
try {
ToastEx.makeText(getContext(), R.string.title_user_interaction, Toast.LENGTH_SHORT).show();
PendingIntent pi = (PendingIntent) result;
startIntentSenderForResult(
pi.getIntentSender(),

View File

@ -737,6 +737,7 @@
<string name="title_decrypt">Decrypt</string>
<string name="title_resync">Resync</string>
<string name="title_no_openpgp">OpenKeychain not found</string>
<string name="title_user_interaction">Transferring to OpenKeychain</string>
<string name="title_not_encrypted">Message is not signed or encrypted</string>
<string name="title_reset_sign_key">Reset sign key</string>