Force anim Handler to be created for the UI thread
Somehow Animatable2.AnimationCallback#onAnimationEnd is being called on a background thread. This then tries to hit the compat version of LazyInstanceCompat#AutoRestartCompat to reduce code duplication and restart the animation. In this case we're building the AutoRestartCompat here, which has a local Handler variable that gets created. This causes a crash because Looper#prepare() wasn't called for this thread. I'm not quite sure why this is being called on the background, but we definitely should be creating the Handler for the main looper. Fixing that here. Adding NOTRY due to mac_chromium_rel_ng failure which is delaying this Android/Java only patch that needs to land for 71. All other try bots are passing without issue. BUG=905256 NOTRY=true Change-Id: I523dc9a2cb06a0d26d1acdba3106c93aa272cfd3 Reviewed-on: https://chromium-review.googlesource.com/c/1351894 Commit-Queue: David Trainor <dtrainor@chromium.org> Reviewed-by:Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#611197}
Showing
Please register or sign in to comment