[Android][Crash] Prevent use-after-destroy in keyboard accessory
It is likely, that at least some of the crashes (see linked bugs) are due to |getContentView()| and |getRootWindowInsets()| returning null when the application is detaching the content view. This CL ensures, that nullable methods are only called once. This should prevent null checks to be affected by timeliness of their calls. Furthermore, it makes sure that the Manual Filling component is in an uninitialized state after |destroy()| was called. Bug: 877687, 876231 Change-Id: I2a92d951714e2d67174c08faf4bf6a484cb2479d Reviewed-on: https://chromium-review.googlesource.com/1210505 Commit-Queue: Friedrich Horschig [CEST] <fhorschig@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#589574}
Showing
Please register or sign in to comment