Merge to M65: Android Accessibility: Avoiding crash on unregistering broadcast receiver.

There might be cases where unregistering broadcast receiver can throw
IllegalArgumentException if the context is not handled in an appropriate
manner. This CL avoids the crash.

(cherry picked from commit 8839385d34f511f6498bc20edba638944b67d0cd)

Change-Id: I9d7888dcbde518caa6e7e426a215953e9c3ba672
Bug: 780261
Reviewed-by: Bo <>
Reviewed-by: Dominic Mazzoni <>
Commit-Queue: Isha Bobra <>
Cr-Original-Commit-Position: refs/heads/master@{#532578}
Cr-Commit-Position: refs/branch-heads/3325@{#518}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
1 file changed