diff options
| author | Mark Punzalan <markpun@google.com> | 2022-03-18 21:37:56 +0000 |
|---|---|---|
| committer | Mark Punzalan <markpun@google.com> | 2022-03-19 05:28:21 +0000 |
| commit | 49525ccb1455208b2a66ad6a3c12f72289f1868f (patch) | |
| tree | a6d8e2a5cf41d896ec3c18a14a701e918eb472d3 /core/java/android/util/SparseSetArray.java | |
| parent | 6defa5fd287dd4a322d1a5a7b5d31d5e7ef4b4dd (diff) | |
Add package name to all UiTranslationStateCallback methods.
This will be used by clients such as Gboard to ensure they are
responding to translation events for the correct activity. Ideally we
would include the activity token, in case there are multiple activities
being translated in an app, but that isn't supported right now and it
requires changes to EditorInfo (in Input Method Framework) to get the
activity token.
Also fixed an issue where the callback methods are invoked twice when
the IME itself is the translated app is registering a callback for
itself. Note: This happens in UiTranslationManagerTest where the test
activity and IME have the same uid, but shouldn't happen outside of
tests.
Bug: 223979041
Test: atest CtsTranslationTestCases
Change-Id: Id99f501b065b92fe3358c2ae525175ad3ea4b119
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions
