mirror of
https://gitlab.com/xynngh/YetAnotherCallBlocker.git
synced 2025-06-05 22:19:12 +02:00
Fix initial DB download crash
Create notification channels before calling `startForeground(..., notification)`
This commit is contained in:
@@ -92,6 +92,8 @@ public class NotificationHelper {
|
||||
}
|
||||
|
||||
public static Notification createServiceNotification(Context context, String title) {
|
||||
initNotificationChannels(context);
|
||||
|
||||
if (title == null) title = context.getString(R.string.notification_background_operation);
|
||||
|
||||
PendingIntent contentIntent = pendingActivity(context,
|
||||
|
Reference in New Issue
Block a user