From d61c5f5c8eb90980188a2ba0a85258dfdb90b721 Mon Sep 17 00:00:00 2001 From: Umair Date: Tue, 4 Jul 2023 00:38:13 +0200 Subject: [PATCH] Exit dialog SDK check now have optin check --- app/src/main/java/com/techlads/composetv/ExitAppDelegate.kt | 1 + 1 file changed, 1 insertion(+) 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(