[Android, Crash] Ensure accessory provides empty actions
If the provider registered itself but never provided items, the caching adapter would notify all observers that the last provided actions were null and force them into an undefined state which caused a crash. The proper way to handle this case, is to send an empty set to all observers (see tests for an intuitive use case). Bug: 855036 Change-Id: If3a0e9ee14ac3e24e163ebba092ab47f226e43b7 Reviewed-on: https://chromium-review.googlesource.com/1115220Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Commit-Queue: Friedrich Horschig <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#570714}
Showing
Please register or sign in to comment