Skip to content

Commit

Permalink
Fixes check for default value for push notification sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtruong committed Aug 15, 2016
1 parent 8a333a9 commit 3c634aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static IterableNotification createNotification(Context context, Bundle ex
String[] soundFile = soundName.split("\\.");
soundName = soundFile[0];

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

0 comments on commit 3c634aa

Please sign in to comment.