Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 88b8d370 authored by Lee Shombert's avatar Lee Shombert
Browse files

Suppress the missing Executor lint warning

Android API guidelines require an Executor overload for methods that
accept a callback.  The three "beginTransactionWithListener" methods
do not have such an overload and these have been flagged by lint.

However, Executor is not suitable for these listener objects, since
the listeners expect to use thread-local variables.  It would be a
functional error to have the callback execute on any thread but the
current thread.

This commit suppresses the lint warning associated with the three
APIs; the @SuppressLint annotation serves as documentation that these
APIs will never use Executors.  The commit also removes the TODO
comments that were attached to the API.

Test: presubmit (verified that the lint warning is not present)
Flag: DOCS_ONLY
Bug: 340874899
Change-Id: Id2edc4c90f6b4aaf939705af0ac1ebdb17fcf854
parent ae50aeba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment