Check insets again for clipboard UI post-animation

In some cases (particularly copying back to the clipboard after the
clipboard EditTextActivity) there's a race condition where the keyboard
insets are still visible when we check, even though the keyboard then
disappears. To mitigate this we can recheck the window insets once the
animation finishes, and expand the view automatically if the keyboard is
no longer showing.

Bug: 358479709
Fix: 358479709
Flag: EXEMPT trivial change
Test: manual (visual change)
Change-Id: If87a4e143568f24ec70a3dc919ca3d16d32d9253
1 file changed