Skip to content

Commit 58aaa87

Browse files
committed
use hasKey instead of getString
1 parent 2f19284 commit 58aaa87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

android/src/main/java/com/vydia/UploaderModule.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,8 @@ public void onCancelled(Context context, UploadInfo uploadInfo) {
207207

208208
UploadNotificationConfig notificationConfig = new UploadNotificationConfig();
209209

210-
if(notification.getString("notificationChannel")){
210+
if(notification.hasKey("notificationChannel")){
211211
notificationConfig.setNotificationChannelId(notification.getString("notificationChannel"));
212-
}else{
213-
notificationConfig.setNotificationChannelId("Background-Upload-Service");
214212
}
215213

216214
request.setNotificationConfig(notificationConfig);

0 commit comments

Comments
 (0)