Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0be76567 authored by Shan Huang's avatar Shan Huang Committed by Automerger Merge Worker
Browse files

Merge "Respect the enforce flag for callback registration." into tm-qpr-dev...

Merge "Respect the enforce flag for callback registration." into tm-qpr-dev am: a2c8daf7 am: fa21ec75

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19563307



Change-Id: Ib397a041f574fcd547ebb556ef56970087ce979c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents cc40b63a fa21ec75
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -325,7 +325,8 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
        public boolean checkApplicationCallbackRegistration(int priority,
                OnBackInvokedCallback callback) {
            if (!mApplicationCallBackEnabled
                    && !(callback instanceof CompatOnBackInvokedCallback)) {
                    && !(callback instanceof CompatOnBackInvokedCallback)
                    && !ALWAYS_ENFORCE_PREDICTIVE_BACK) {
                Log.w("OnBackInvokedCallback",
                        "OnBackInvokedCallback is not enabled for the application."
                                + "\nSet 'android:enableOnBackInvokedCallback=\"true\"' in the"