Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 807c6fd

Browse files
committed
Missing change on variable name.
1 parent 2948bb6 commit 807c6fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,11 @@ public void checkOrCreateDefaultChannel() {
691691
int importance = NotificationManager.IMPORTANCE_HIGH;
692692
Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
693693

694+
// Instanciate a default channel with default sound.
694695
String channel_id_sound = NOTIFICATION_CHANNEL_ID + "-default-" + importance + "-" + DEFAULT_VIBRATION;
695-
checkOrCreateChannel(manager, channel_id, soundUri, importance, new long[] {0, DEFAULT_VIBRATION});
696+
checkOrCreateChannel(manager, channel_id_sound, soundUri, importance, new long[] {0, DEFAULT_VIBRATION});
696697

698+
// Instanciate a default channel without sound defined for backward compatibility.
697699
String channel_id_no_sound = NOTIFICATION_CHANNEL_ID + "-" + importance + "-" + DEFAULT_VIBRATION;
698700
checkOrCreateChannel(manager, channel_id_no_sound, null, importance, new long[] {0, DEFAULT_VIBRATION});
699701
}

0 commit comments

Comments
 (0)