From: Nathaniel Wesley Filardo Date: Sat, 2 Mar 2019 01:53:25 +0000 (+0000) Subject: Register the notification channel X-Git-Tag: release-1.3.1~3 X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=8ca85d9cbf0aa4c0260a06e6b689fce58641ac5a;p=acmetensortoys-ctfws-android Register the notification channel Oops. Forgot half of the dance, apparently. --- diff --git a/mobile/src/main/java/com/acmetensortoys/ctfwstimer/MainServiceNotification.java b/mobile/src/main/java/com/acmetensortoys/ctfwstimer/MainServiceNotification.java index aaef01a..ecb84f4 100644 --- a/mobile/src/main/java/com/acmetensortoys/ctfwstimer/MainServiceNotification.java +++ b/mobile/src/main/java/com/acmetensortoys/ctfwstimer/MainServiceNotification.java @@ -48,6 +48,9 @@ class MainServiceNotification { NotificationManager.IMPORTANCE_DEFAULT); nc.enableVibration(true); nc.setLockscreenVisibility(Notification.VISIBILITY_PUBLIC); + NotificationManager nm = (NotificationManager) + ms.getSystemService(Context.NOTIFICATION_SERVICE); + nm.createNotificationChannel(nc); } userNoteBuilder = new NotificationCompat.Builder(ms, CTFWS_GAME_CHANNEL_ID)