diff --git a/app/src/main/java/com/techlads/composetv/ExitAppDelegate.kt b/app/src/main/java/com/techlads/composetv/ExitAppDelegate.kt index 65a679d..26cb21e 100644 --- a/app/src/main/java/com/techlads/composetv/ExitAppDelegate.kt +++ b/app/src/main/java/com/techlads/composetv/ExitAppDelegate.kt @@ -5,6 +5,7 @@ import androidx.activity.ComponentActivity import androidx.activity.addCallback import androidx.core.os.BuildCompat +@androidx.annotation.OptIn(BuildCompat.PrereleaseSdkCheck::class) fun ComponentActivity.registerOnBackPress(onBackPress: () -> Unit) { if (BuildCompat.isAtLeastT()) { onBackInvokedDispatcher.registerOnBackInvokedCallback(