Android: Fix StrictMode violation on Smart Selection icon loading
We are calling Icon#loadDrawable on the UI thread previously, based on the Android doc, we should use Icon#loadDrawableAsync instead. Previously, this is not enforced, but now we encountered a StrictMode violation for this. Since now we are calling Icon#loadDrawableAsync, we need to pre-warm the Drawable before we show the popup menu, otherwise the icon will be set after the popup menu showed for the first time. Bug: 1129211 Change-Id: Iac5127a307d1d2d124a4b2debb7b021a2be2da75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562059Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Richard Coles <torne@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#831948}
Showing
Please register or sign in to comment