2222import com .hjq .window .EasyWindow ;
2323import com .hjq .window .draggable .SpringDraggable ;
2424
25- import deltazero .amarok .receivers .ActionReceiver ;
2625import deltazero .amarok .ui .MainActivity ;
2726
2827public class QuickHideService extends LifecycleService {
@@ -31,7 +30,6 @@ public class QuickHideService extends LifecycleService {
3130 private ImageView ivPanicButton ;
3231
3332 private PendingIntent activityPendingIntent ;
34- private NotificationCompat .Action action ;
3533 private static final String CHANNEL_ID = "QUICK_HIDE_CHANNEL" ;
3634 private static final int NOTIFICATION_ID = 1 ;
3735
@@ -46,14 +44,6 @@ public void onCreate() {
4644 getString (R .string .notification_channel_name ), NotificationManager .IMPORTANCE_DEFAULT );
4745 getSystemService (NotificationManager .class ).createNotificationChannel (channel );
4846
49- Intent actionIntent = new Intent (this , ActionReceiver .class );
50- actionIntent .setAction ("deltazero.amarok.HIDE" );
51- PendingIntent actionPendingIntent = PendingIntent .getBroadcast (this , 1 ,
52- actionIntent , PendingIntent .FLAG_IMMUTABLE );
53- action = new NotificationCompat .Action .Builder (
54- R .drawable .ic_paw ,
55- getString (R .string .hide ), actionPendingIntent ).build ();
56-
5747 activityPendingIntent = PendingIntent .getActivity (this , 0 ,
5848 new Intent (this , MainActivity .class ), PendingIntent .FLAG_IMMUTABLE );
5949
@@ -79,7 +69,6 @@ public int onStartCommand(Intent intent, int flags, int startId) {
7969 .setSmallIcon (R .drawable .ic_paw )
8070 .setContentIntent (activityPendingIntent )
8171 .setOngoing (true )
82- .addAction (action )
8372 .build ();
8473
8574 if (Build .VERSION .SDK_INT >= 34 ) {
0 commit comments