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(); } }