Skip to content

Commit

Permalink
Removed default notification sound
Browse files Browse the repository at this point in the history
  • Loading branch information
shauleiz committed Apr 18, 2024
1 parent e913ca1 commit 517edf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ private void createNotificationChannel() {
NotificationManager.IMPORTANCE_HIGH
);

serviceChannel.setSound(null, null);
NotificationManager manager = getSystemService(NotificationManager.class);
manager.createNotificationChannel(serviceChannel);

}
}
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<SwitchPreferenceCompat
app:defaultValue="false"
android:key="@string/key_sort_separate"
android:summary="Inactive alarms at the bottom"/>
android:title="Inactive alarms at the bottom"/>
</PreferenceCategory>

</PreferenceScreen>
Expand Down

0 comments on commit 517edf8

Please sign in to comment.