summaryrefslogtreecommitdiff
path: root/services/contentcapture/java
diff options
context:
space:
mode:
author Joanne <joannechung@google.com> 2022-11-02 17:09:54 +0800
committer Joanne <joannechung@google.com> 2022-11-02 17:09:54 +0800
commit097cbb1712690e9204f4faaa3ed460e6441f5fb7 (patch)
tree5d733d337f34aeef9f86eb6d583398a5b28c5335 /services/contentcapture/java
parentd5723a21ebd009caec25651a8fb7fe8384c2625c (diff)
Fix IndexOutOfBoundsException when setting allowlist
Bug: 256998476 Test: manual. No see binder warning log when force stop app Change-Id: Ic8e0ae17966c162743e36f2ce8b15b5299ef8a23
Diffstat (limited to 'services/contentcapture/java')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java
index cee78e0e9ab5..34787a390d48 100644
--- a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java
+++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java
@@ -728,7 +728,7 @@ final class ContentCapturePerUserService
if (oldList != null && adding != null) {
adding.removeAll(oldList);
}
-
+ addingCount = CollectionUtils.size(adding);
EventLog.writeEvent(EventLogTags.CC_UPDATE_OPTIONS, mUserId, addingCount);
for (int i = 0; i < addingCount; i++) {
String packageName = adding.valueAt(i);