OSDN Git Service

Fix Settings creating too many threads unexpectedly
authorJason Chiu <chiujason@google.com>
Tue, 29 Oct 2019 09:06:28 +0000 (17:06 +0800)
committerJason Chiu <chiujason@google.com>
Wed, 30 Oct 2019 04:25:45 +0000 (12:25 +0800)
commitab21b8a838b40906cad5f9eafd020b7bde7ade1c
treee5035161ee820edd2fc631e85773e67b68bff54d
parentcefcf97730bd9e7fd28a6e2c706f7d0c58453b1d
Fix Settings creating too many threads unexpectedly

Provide a method to submit a Callable for execution in the shared
background thread pool.

Bug: 143434413
Test: manual, robotest
Change-Id: I149b5926f20acd0e43c4071cc35520c6bc50efef
packages/SettingsLib/src/com/android/settingslib/utils/ThreadUtils.java