mirror of https://github.com/M66B/FairEmail.git
Cleanup
This commit is contained in:
parent
d910d78e6d
commit
12e577fc9a
|
@ -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)
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue