Set Notification Channel for Sending Parsing Notification
Contacts will create multiple threads while handling importing vcard contacts. Only first thread will create notification channel, but sometimes notification channel is not ready when parsing thread begin to send notification. Need to make sure notification channel is ready before sending notification
Change-Id: I9cec5996aa4329091657060f48a71bf4c60b62d0
diff --git a/src/com/android/contacts/vcard/NotificationImportExportListener.java b/src/com/android/contacts/vcard/NotificationImportExportListener.java
index 3b4dc5e..cc60668 100755
--- a/src/com/android/contacts/vcard/NotificationImportExportListener.java
+++ b/src/com/android/contacts/vcard/NotificationImportExportListener.java
@@ -112,6 +112,7 @@
final String description = mContext.getString(R.string.importing_vcard_description,
entry.getDisplayName());
+ ContactsNotificationChannelsUtil.createDefaultChannel(mContext);
return constructProgressNotification(mContext.getApplicationContext(),
VCardService.TYPE_IMPORT, description, tickerText, jobId, request.displayName,
totalCount, currentCount);