From 198d2256148e7edff80a9e401dac86c3cc99cc14 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 25 Apr 2020 16:16:07 +0200 Subject: [PATCH] Reduce logging --- .../java/eu/faircode/email/FragmentOptionsEncryption.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java b/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java index def7bafae1..cdf7b49404 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsEncryption.java @@ -317,7 +317,10 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre @Override public void onError(Exception ex) { - Log.e("PGP", ex); + if ("bindService() returned false!".equals(ex.getMessage())) + Log.i(ex.getMessage()); + else + Log.e("PGP", ex); } }); pgpService.bindToService();