From 097cbb1712690e9204f4faaa3ed460e6441f5fb7 Mon Sep 17 00:00:00 2001 From: Joanne Date: Wed, 2 Nov 2022 17:09:54 +0800 Subject: Fix IndexOutOfBoundsException when setting allowlist Bug: 256998476 Test: manual. No see binder warning log when force stop app Change-Id: Ic8e0ae17966c162743e36f2ce8b15b5299ef8a23 --- .../com/android/server/contentcapture/ContentCapturePerUserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/contentcapture/java') 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); -- cgit v1.2.3-59-g8ed1b