Files
frameworks_base/core/java/android/service
Peter Li c6931d97cb Create proper ui context if original context is not a ui context
Since Android API 31 there is a new check in StrictMode, this
check ensures that any ui-related operations involving context
object are only performed on the ui context. If the context is
not the ui context, it will fail with error when calling the
ui-related methods.

So we need to create proper ui context if original context is
not a ui context.

Bug: 220698651
Test: atest CtsVoiceInteractionTestCases
Test: manual. Test VoiceInteractionSession UI.
Change-Id: Ibbeae9b135b90078b3b9e36a2d0c5a92f6184b2a
2022-06-28 20:27:16 +08:00
..
2022-04-01 16:46:46 +00:00
…