INNER CODE UNIT · Kotlin

setupNotificationChannels

nekomangaorg/Neko · app/src/main/java/org/nekomanga/App.kt:253

    protected open fun setupNotificationChannels() {
        Notifications.createChannels(this)
    }

    private inner class DisableIncognitoReceiver : BroadcastReceiver() {
        private var registered = false

        override fun onReceive(context: Context, intent: Intent) {
            securityPreferences.incognitoMode().set(false)
        }

        fun register() {
            if (!registered) {
                ContextCompat.registerReceiver(
                    this@App,
                    this,
                    IntentFilter(ACTION_DISABLE_INCOGNITO_MODE),
                    ContextCompat.RECEIVER_EXPORTED,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…