OSDN Git Service

Fix Settings creating too many threads unexpectedly
authorJason Chiu <chiujason@google.com>
Mon, 28 Oct 2019 10:17:04 +0000 (18:17 +0800)
committerJason Chiu <chiujason@google.com>
Tue, 12 Nov 2019 08:24:10 +0000 (08:24 +0000)
commit48a0ff43046e7f19e27edd005308aa5cebe2926b
tree5dc7689ce6977d98fbe72e0f9208e00059b36711
parent8134971f00aac3ae0b9f81510073e74e7d7d5503
Fix Settings creating too many threads unexpectedly

Limit the number of threads by using the shared thread pool in
ThreadUtils.

Bug: 143434413
Test: manual
Change-Id: I4afe1f641a11e218616772c1d5446efcc99cd1cc
Merged-In: I4afe1f641a11e218616772c1d5446efcc99cd1cc
(cherry picked from commit 3e4c47dbc090310edcf14b1c5094259f74ff0525)
src/com/android/settings/homepage/contextualcards/ContextualCardLoader.java
src/com/android/settings/homepage/contextualcards/conditional/ConditionManager.java
src/com/android/settings/homepage/contextualcards/slices/NotificationChannelSlice.java