commit | 195043f40e46ddcd2fe534a9dac344792d39d91c | [log] [tgz] |
---|---|---|
author | Valentin Iftime <valiiftime@google.com> | Wed Feb 15 20:39:44 2023 +0100 |
committer | Iavor-Valentin Iftime <valiiftime@google.com> | Mon Feb 27 14:30:31 2023 +0000 |
tree | 6923c8c3fa88fb139571e363d50e06f1a9bda8b0 | |
parent | 71c1b0ebebefd90ed62a515c29338c68b96d8f1c [diff] |
Wait for preloading images to complete before inflating notifications NotificationContentInflater waits on SysUiBg thread for images to load, with a timeout of 1000ms. Test: 1. Build a test app that posts MessagingStyle notifications with a huge image (8k+) set as data Uri. 2. SystemUi should not ANR 3. adb logcat | grep NotificationInlineImageCache - shows timeout/cancellation logs Bug: 252766417 Bug: 223859644 Change-Id: I341db60223214cf2282b5c0270e343e1ce95fa01