More fixes to targeting A14

This commit is contained in:
Jays2Kings 2023-09-27 13:11:41 -07:00
parent 40225239e4
commit 83969b84c3
4 changed files with 19 additions and 4 deletions

View file

@ -14,6 +14,7 @@ import android.webkit.WebView
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.ContextCompat
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
@ -148,7 +149,12 @@ open class App : Application(), DefaultLifecycleObserver {
fun register() {
if (!registered) {
registerReceiver(this, IntentFilter(ACTION_DISABLE_INCOGNITO_MODE))
ContextCompat.registerReceiver(
this@App,
this,
IntentFilter(ACTION_DISABLE_INCOGNITO_MODE),
ContextCompat.RECEIVER_EXPORTED,
)
registered = true
}
}