From 4d9c7d3222be24607aa9436eb1a88752e275dc94 Mon Sep 17 00:00:00 2001 From: "a.fialko" Date: Sun, 30 Dec 2018 21:03:20 +0300 Subject: [PATCH] update default notification to release version --- .../src/main/java/heyalex/widgethelper/WidgetUpdater.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget-helper/src/main/java/heyalex/widgethelper/WidgetUpdater.java b/widget-helper/src/main/java/heyalex/widgethelper/WidgetUpdater.java index 8df638f..7814951 100644 --- a/widget-helper/src/main/java/heyalex/widgethelper/WidgetUpdater.java +++ b/widget-helper/src/main/java/heyalex/widgethelper/WidgetUpdater.java @@ -60,6 +60,10 @@ public Notification makeNotification(@NonNull Context context) { } Notification.Builder notificationBuilder = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID); + notificationBuilder.setOngoing(true); + notificationBuilder.setContentTitle("Update widget") + .setContentText("Wait for finish updating") + .setSmallIcon(android.R.drawable.stat_notify_sync); return notificationBuilder.build(); } }