summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Beverly <beverlyt@google.com> 2023-04-12 18:10:43 +0000
committer Beverly Tai <beverlyt@google.com> 2023-04-12 18:17:28 +0000
commitbd09bd2034317d32c633f4a73314a501bd823b0c (patch)
tree8a07055bcfad25edc4a35dd956e410cc2937f955
parent002b09c340866966824b48467d1b42fc4c42d6fe (diff)
Update KeyguardUpdateMonitor DPM_STATE_CHANGED params
KUM#DPM_STATE_CHANGE was sending the userId as message's object obj, not arg1, so this test would break on headless system variants since msg.arg1 always was equal to 0 (while this always passes on non-headless systems since the test always runs as userId 0). Test: atest KeyguardUpdateMonitorTest#testSecondaryLockscreenRequirement on a headless system device variant (previously was 100% failing) Fixes: 264869291 Change-Id: Iab519b59ca92ea25da1386cb2e020df63c828070
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
index ffa5cf3b41b8..a22db337b2a9 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
@@ -1824,7 +1824,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
} else if (DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED
.equals(action)) {
mHandler.sendMessage(mHandler.obtainMessage(MSG_DPM_STATE_CHANGED,
- getSendingUserId()));
+ getSendingUserId(), 0));
} else if (ACTION_USER_UNLOCKED.equals(action)) {
mHandler.sendMessage(mHandler.obtainMessage(MSG_USER_UNLOCKED,
getSendingUserId(), 0));