Skip to content

Commit

Permalink
mycelium-com#543 fix crash on receive page(after receiving event)
Browse files Browse the repository at this point in the history
(cherry picked from commit efa4c8f)
  • Loading branch information
xElvis89x authored and sergeylappo committed Feb 12, 2018
1 parent ca1e35f commit 4a8dd4a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ public void syncStopped(SyncStopped event) {
Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);

NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext())
.setSmallIcon(R.drawable.ic_launcher)
.setSound(soundUri, AudioManager.STREAM_NOTIFICATION); //This sets the sound to play
notificationManager.notify(0, mBuilder.build());

Expand Down

0 comments on commit 4a8dd4a

Please sign in to comment.