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
Loading
Please register or sign in to comment