[Offline indicator v2] Fix NPE after tab modal dismiss
A runnable is set to run once the slide-in show animation is complete. However, the show animation is never run if a tab modal dialog is shown. Once the dialog is dismissed after the status indicator is hidden (though it was never really shown), the runnable ends up running and tries to access the model, which is null. The fix is to check that the indicator has a positive height in addition to checking that the current min-height offset is equal to the height. This makes sure we don't run the mOnShowAnimationEnd runnable after the status indicator is hidden. Bug: 1122906 Change-Id: I1a0a7d9ef231b198de1ee96fd9af89602ede03e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382874Reviewed-by:Matthew Jones <mdjones@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Commit-Queue: Sinan Sahin <sinansahin@google.com> Cr-Commit-Position: refs/heads/master@{#804104}
Showing
Please register or sign in to comment