Garbage collect PGP service

This commit is contained in:
M66B 2020-04-24 12:59:22 +02:00
parent f4dbff2bb6
commit da649a8cb7
2 changed files with 2 additions and 0 deletions

View File

@ -1018,6 +1018,7 @@ public class FragmentCompose extends FragmentBase {
if (pgpService != null && pgpService.isBound())
pgpService.unbindFromService();
pgpService = null;
super.onDestroyView();
}

View File

@ -1294,6 +1294,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (pgpService != null && pgpService.isBound())
pgpService.unbindFromService();
pgpService = null;
kv.clear();
values.clear();