diff --git a/app/src/main/java/ua/samosfator/moduleok/notification/ScoreCheckerNotification.java b/app/src/main/java/ua/samosfator/moduleok/notification/ScoreCheckerNotification.java index ff45dbe..d4f4fb5 100644 --- a/app/src/main/java/ua/samosfator/moduleok/notification/ScoreCheckerNotification.java +++ b/app/src/main/java/ua/samosfator/moduleok/notification/ScoreCheckerNotification.java @@ -4,6 +4,8 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; +import android.media.RingtoneManager; +import android.net.Uri; import android.support.v4.app.NotificationCompat; import ua.samosfator.moduleok.App; @@ -33,7 +35,9 @@ private static void buildNotification() { resultIntent, PendingIntent.FLAG_UPDATE_CURRENT ); + Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); mNotificationBuilder.setContentIntent(resultPendingIntent); + mNotificationBuilder.setSound(alarmSound); } private static void pushNotification() {