Loading
Allow translation should also work on non-resume state
Currently, we only allow translation for the resumed Activity. It works fine for full screen Activity. On foldable devices, we may have two Activity in the same time. It is possible one Activity is on the paused state but there is still new incoming message, we should also allow the message can be translated. Bug: 199264898 Test: atest CtsTranslationTestCases Test: manual. Use one Activity targetsdk prior to Q then receiving broadcast to start Ui translation on paused state in split mode. Change-Id: I6720b41d9995c9ced2e3b2b87eb95540101d15a0