Skip to content

Commit

Permalink
Exit dialog SDK check now have optin check
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairKhalid786 committed Jul 3, 2023
1 parent 9983431 commit 9739f92
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9739f92

Please sign in to comment.