INNER CODE UNIT · Kotlin

createAuxChannel

Gedsh/InviZible · tordnscrypt/src/main/java/pan/alexander/tordnscrypt/App.kt:96

    private fun createAuxChannel() {
        val notificationManager = getSystemService(this, NotificationManager::class.java)
        val channel = NotificationChannel(
            AUX_CHANNEL_ID,
            getString(R.string.notification_channel_auxiliary),
            NotificationManager.IMPORTANCE_HIGH
        )
        channel.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT)
        channel.description = ""
        channel.enableLights(true)
        channel.lightColor = Color.YELLOW
        channel.enableVibration(true)
        channel.lockscreenVisibility = Notification.VISIBILITY_PRIVATE
        channel.setShowBadge(true)
        notificationManager?.createNotificationChannel(channel)
    }

    private fun setExceptionHandler() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…