From 12e577fc9a133749a510641ef3682630ba42a56e Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 22 Apr 2022 10:42:16 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 6 +----- app/src/main/java/eu/faircode/email/ServiceUI.java | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 2fec21d732..73bb602572 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1289,15 +1289,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences PendingIntent piWhy = PendingIntentCompat.getActivity( this, ActivityView.PI_WHY, why, PendingIntent.FLAG_UPDATE_CURRENT); - Intent dump = new Intent(this, ServiceUI.class).setAction("dump"); - PendingIntent piDump = PendingIntentCompat.getService( - this, ServiceUI.PI_DUMP, dump, PendingIntent.FLAG_UPDATE_CURRENT); - // Build notification NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "service") .setSmallIcon(R.drawable.baseline_compare_arrows_white_24) - .setContentIntent(BuildConfig.DEBUG ? piDump : piWhy) + .setContentIntent(piWhy) .setAutoCancel(false) .setShowWhen(false) .setPriority(NotificationCompat.PRIORITY_MIN) diff --git a/app/src/main/java/eu/faircode/email/ServiceUI.java b/app/src/main/java/eu/faircode/email/ServiceUI.java index f03d0db6b7..0988308edb 100644 --- a/app/src/main/java/eu/faircode/email/ServiceUI.java +++ b/app/src/main/java/eu/faircode/email/ServiceUI.java @@ -58,7 +58,6 @@ public class ServiceUI extends IntentService { static final int PI_SNOOZE = 10; static final int PI_IGNORED = 11; static final int PI_DELETE = 12; - static final int PI_DUMP = 13; public ServiceUI() { this(ServiceUI.class.getName()); @@ -177,10 +176,6 @@ public class ServiceUI extends IntentService { // ignore break; - case "dump": - CoalMine.check(); - break; - default: throw new IllegalArgumentException("Unknown UI action: " + parts[0]); }