Ignore #setInitialA11yFocus before view created
Calls to FirstRunFragment#setInitialA11yFocus can be triggered when view is not initialized yet for the fragment and cause NPE with current implementations. This CL simply ignores the calls if it is made too early. More context on why #setInitialA11yFocus is introduced and why this fix might be sufficient can be found in the crbug.com/1140174#c2. Bug: 1140174 Change-Id: Ie7771e73a46bd30d1c0e0fa3e2e56c0e886c4d54 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487580 Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Sky Malice <skym@chromium.org> Cr-Commit-Position: refs/heads/master@{#819064}
Showing
Please register or sign in to comment