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

Commit 99ecc78a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return compat callback for apps requesting legacy back."

parents 786accc8 9538d070
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -106,12 +106,6 @@ class BackNavigationController {
        synchronized (task.mWmService.mGlobalLock) {
            activityRecord = task.topRunningActivity();

            if(!activityRecord.info.applicationInfo.isOnBackInvokedCallbackEnabled()) {
                ProtoLog.d(WM_DEBUG_BACK_PREVIEW, "Activity %s: enableOnBackInvokedCallback=false."
                        + " Returning null BackNavigationInfo.", activityRecord.getName());
                return null;
            }

            removedWindowContainer = activityRecord;
            taskWindowConfiguration = task.getTaskInfo().configuration.windowConfiguration;
            WindowState window = task.getWindow(WindowState::isFocused);