Skip to content

Commit 3c634aa

Browse files
committed
Fixes check for default value for push notification sounds
1 parent 8a333a9 commit 3c634aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableNotification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static IterableNotification createNotification(Context context, Bundle ex
7070
String[] soundFile = soundName.split("\\.");
7171
soundName = soundFile[0];
7272

73-
if (soundName.equalsIgnoreCase(IterableConstants.DEFAULT_SOUND)){
73+
if (!soundName.equalsIgnoreCase(IterableConstants.DEFAULT_SOUND)){
7474
int soundID = context.getResources().getIdentifier(soundName, IterableConstants.SOUND_FOLDER_IDENTIFIER, context.getPackageName());
7575
Uri soundUri = Uri.parse(IterableConstants.ANDROID_RESOURCE_PATH + context.getPackageName() + "/" + soundID);
7676
notificationBuilder.setSound(soundUri);

0 commit comments

Comments
 (0)