From 59941fc8670333855ed47bf18f3a7562261cfe64 Mon Sep 17 00:00:00 2001 From: FineFindus <63370021+FineFindus@users.noreply.github.com> Date: Fri, 3 Mar 2023 23:49:45 +0100 Subject: [PATCH] style(notifications-actions/reply): clean-up --- .../org/joinmastodon/android/PushNotificationReceiver.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index 5752f13c4..e4b98be98 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -12,12 +12,9 @@ import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; -import android.service.notification.StatusBarNotification; import android.text.TextUtils; import android.util.Log; -import androidx.annotation.RequiresApi; - import org.joinmastodon.android.api.MastodonAPIController; import org.joinmastodon.android.api.requests.notifications.GetNotificationByID; import org.joinmastodon.android.api.requests.statuses.CreateStatus; @@ -283,7 +280,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{ req.spoilerText = "re: " + notification.status.spoilerText; } -// new CreateStatus(req, UUID.randomUUID().toString()).exec(accountID); + new CreateStatus(req, UUID.randomUUID().toString()).exec(accountID); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification.Builder builder = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O ? @@ -295,8 +292,6 @@ public class PushNotificationReceiver extends BroadcastReceiver{ Notification repliedNotification = builder.setSmallIcon(R.drawable.ic_ntf_logo) .setContentText(context.getString(R.string.sk_notification_action_replied, notification.status.account.getDisplayUsername())) .build(); -// notificationManager.cancel(accountID, notificationId); -// notificationManager.notify(notificationId, repliedNotification); notificationManager.notify(accountID, notificationId, repliedNotification); } } \ No newline at end of file