Added leak canary

This commit is contained in:
M66B
2022-04-12 21:16:04 +02:00
parent 1ea9637a83
commit b02c31ed70
8 changed files with 33 additions and 2 deletions

View File

@@ -1288,11 +1288,15 @@ 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(piWhy)
.setContentIntent(BuildConfig.DEBUG ? piDump : piWhy)
.setAutoCancel(false)
.setShowWhen(false)
.setPriority(NotificationCompat.PRIORITY_MIN)