summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/app/fedilab/android/helper/PushHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/app/fedilab/android/helper/PushHelper.java')
-rw-r--r--app/src/main/java/app/fedilab/android/helper/PushHelper.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/src/main/java/app/fedilab/android/helper/PushHelper.java b/app/src/main/java/app/fedilab/android/helper/PushHelper.java
index fd541ef49..087d05191 100644
--- a/app/src/main/java/app/fedilab/android/helper/PushHelper.java
+++ b/app/src/main/java/app/fedilab/android/helper/PushHelper.java
@@ -91,9 +91,7 @@ public class PushHelper {
new Thread(() -> {
List<BaseAccount> accounts = new Account(context).getPushNotificationAccounts();
for (BaseAccount account : accounts) {
- ((Activity) context).runOnUiThread(() -> {
- UnifiedPush.unregisterApp(context, account.user_id + "@" + account.instance);
- });
+ ((Activity) context).runOnUiThread(() -> UnifiedPush.unregisterApp(context, account.user_id + "@" + account.instance));
}
}).start();
break;
@@ -106,9 +104,7 @@ public class PushHelper {
List<BaseAccount> accounts = new Account(context).getPushNotificationAccounts();
if (accounts != null) {
for (BaseAccount account : accounts) {
- ((Activity) context).runOnUiThread(() -> {
- UnifiedPush.unregisterApp(context, account.user_id + "@" + account.instance);
- });
+ ((Activity) context).runOnUiThread(() -> UnifiedPush.unregisterApp(context, account.user_id + "@" + account.instance));
}
}
}).start();