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(),