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

Commit 9feb5016 authored by Victor Chang's avatar Victor Chang Committed by android-build-merger
Browse files

Merge \"Fix that work apps settings page crash after changing work profile to...

Merge \"Fix that work apps settings page crash after changing work profile to use separated lock\" into nyc-dev
am: 64372056

Change-Id: Id19fe2488406a3891cd433d8b1e9273a28b48fbb
parents 69147f24 64372056
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -186,9 +186,13 @@ class ActivityStartInterceptor {
        if (mActivityOptions == null) {
            mActivityOptions = ActivityOptions.makeBasic();
        }

        ActivityRecord homeActivityRecord = mSupervisor.getHomeActivity();
        if (homeActivityRecord != null && homeActivityRecord.task != null) {
            // Showing credential confirmation activity in home task to avoid stopping multi-windowed
            // mode after showing the full-screen credential confirmation activity.
        mActivityOptions.setLaunchTaskId(mSupervisor.getHomeActivity().task.taskId);
            mActivityOptions.setLaunchTaskId(homeActivityRecord.task.taskId);
        }

        final UserInfo parent = mUserManager.getProfileParent(mUserId);
        mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id);