Fix initial DB download crash

Create notification channels before calling `startForeground(..., notification)`
This commit is contained in:
xynngh 2020-08-15 13:22:10 +04:00
parent 4aa3744768
commit 3236b1b335
1 changed files with 2 additions and 0 deletions

View File

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