Revert line introduced in previous CL that seems to always pass false for onTrustManagedChanged

This change was introduce in commit fd27baff34.
Test: verified manually,
  1. adb shell settings put global systemui/buffer/KeyguardUpdateMonitorLog DEBUG
  2. adb logcat -s "TrustRepositoryLog:*"
  3. Disable Extend Unlock and enable it, see the onTrustManagedChanged being passed with false and then true.
Change-Id: I2a4e3579d945a8c993b1a03eb27b05ceb4c4c792
This commit is contained in:
Chandru S
2023-08-01 21:08:56 +00:00
parent 5e8a303054
commit b772ef6eaa

View File

@@ -1401,7 +1401,7 @@ public class TrustManagerService extends SystemService {
for (int i = 0; i < mActiveAgents.size(); i++) {
AgentInfo info = mActiveAgents.valueAt(i);
if (info.userId == userId) {
if (info.agent.isTrustableOrWaitingForDowngrade()) {
if (info.agent.isManagingTrust()) {
return true;
}
}