Always set the task auth no matter the relinquished attribute

1d68970400, Skip to set the task auth with relinquished attribute
which result in lock task mode broken. The CL set the lock task
auth no matter if set the relinquished property.

Bug: 199032412
Test: atest LockTaskControllerTest
Change-Id: If7b0b6d0c502f3092d7e44515d1a2f733564a554
This commit is contained in:
Jeff Chang
2021-10-04 20:58:16 +08:00
parent 49327062c2
commit acae29c84c

View File

@@ -1001,7 +1001,6 @@ class Task extends TaskFragment {
mCallingPackage = r.launchedFromPackage;
mCallingFeatureId = r.launchedFromFeatureId;
setIntent(intent != null ? intent : r.intent, info != null ? info : r.info);
return;
}
setLockTaskAuth(r);
}