Fix initial DB download crash
Create notification channels before calling `startForeground(..., notification)`
This commit is contained in:
parent
4aa3744768
commit
3236b1b335
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue