From 51b4689e338ab2d14107db0ea0a3021284a2eb6d Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 4 Oct 2022 09:48:37 +0200 Subject: [PATCH] Fix issue #330 - Crash with Friendica --- .../java/app/fedilab/android/helper/PushNotifications.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/helper/PushNotifications.java b/app/src/main/java/app/fedilab/android/helper/PushNotifications.java index efa9be2e6..0b1d561c4 100644 --- a/app/src/main/java/app/fedilab/android/helper/PushNotifications.java +++ b/app/src/main/java/app/fedilab/android/helper/PushNotifications.java @@ -26,7 +26,6 @@ import android.os.Looper; import androidx.annotation.NonNull; import androidx.preference.PreferenceManager; -import java.io.IOException; import java.util.Random; import java.util.concurrent.TimeUnit; @@ -109,7 +108,7 @@ public class PushNotifications { finalEcdh.saveServerKey(context, pushSubscription.server_key); } } - } catch (IOException e) { + } catch (Exception e) { e.printStackTrace(); } }