From dc5b7b4139235c9f91e2217a02f16096e772eeb9 Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 18 Jul 2019 19:19:17 +0800 Subject: [PATCH] Add notification category --- mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt b/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt index 8ae2650b..bb972100 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/ServiceNotification.kt @@ -22,6 +22,7 @@ object ServiceNotification { private fun buildNotification(context: Context): Notification { val builder = NotificationCompat.Builder(context, CHANNEL) .setWhen(0) + .setCategory(NotificationCompat.CATEGORY_SERVICE) .setColor(ContextCompat.getColor(context, R.color.colorPrimary)) .setContentTitle(context.getText(R.string.notification_tethering_title)) .setSmallIcon(R.drawable.ic_quick_settings_tile_on)