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

Commit f7526085 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Check null before getting DeviceProfile in AbsSwipeUpHandler" into tm-qpr-dev

parents f6674c27 7ba6cadf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1136,7 +1136,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
            mInputConsumerProxy.enable();
        }
        if (endTarget == HOME) {
            duration = mActivity.getDeviceProfile().isTaskbarPresent
            duration = mActivity != null && mActivity.getDeviceProfile().isTaskbarPresent
                    ? StaggeredWorkspaceAnim.DURATION_TASKBAR_MS
                    : StaggeredWorkspaceAnim.DURATION_MS;
            // Early detach the nav bar once the endTarget is determined as HOME