This commit is contained in:
M66B
2022-04-22 10:42:16 +02:00
parent d910d78e6d
commit 12e577fc9a
2 changed files with 1 additions and 10 deletions

View File

@@ -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)