commit | dd24f51595b6b23ed9b44df2222fc29c47f0e04b | [log] [tgz] |
---|---|---|
author | Marcello Galhardo <mgalhardo@google.com> | Fri Sep 15 10:43:50 2023 +0000 |
committer | Marcello Galhardo <mgalhardo@google.com> | Mon Sep 18 16:09:41 2023 +0000 |
tree | ad41acf543b8cfe5045a2e62e3b5ea307fa98e0e | |
parent | e126d5e2f9d1dba15708cbbb440ac951bdca25d3 [diff] |
Fix ANR due to `updateShortcuts` called in the main thread * `updateShortcuts` is an IPC call; * In a rare case, the SystemUI did not have much resources which made the IPC call take time to complete - that caused an ANR; * To avoid such situation, where offloading the IPC call to out the main thread; Test: atest NoteTaskControllerTest Flag: not needed Fixes: b/298003843 Change-Id: Ifff2e2fed94d4c05c0733c9215fa4e96fab090c9