Skip to content

Commit 1ebad85

Browse files
committed
Fix notification channel
1 parent 8010590 commit 1ebad85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/src/main/java/com/cloudinary/android/sample/app/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private void createNotificationChannel() {
5454
int importance = NotificationManager.IMPORTANCE_DEFAULT;
5555
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, name, importance);
5656
channel.setDescription(description);
57-
channel.setVibrationPattern(new long[]{});
57+
channel.enableVibration(false);
5858
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
5959
notificationManager.createNotificationChannel(channel);
6060
}

0 commit comments

Comments
 (0)