Revert "Android: Fix StrictMode violation on Smart Selection icon loading"
This reverts commit 4a6ccde5. Reason for revert: Caused b/176427193, will have another change to resolve the strict mode violation. Original change's description: > 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/+/2562059 > Reviewed-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} TBR=boliu@chromium.org,torne@chromium.org,ctzsm@chromium.org,chromium-scoped@luci-project-accounts.iam.gserviceaccount.com # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1129211 Change-Id: I6335c8eeec4b08b190a97fbea73eefc20fd280d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626195Reviewed-by:Shimi Zhang <ctzsm@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#842850}
Showing
Please register or sign in to comment