Fix a race condition that causes BackAnimation to be null.

The race happens between attaching NavigationBarView and initializing
NavigationEdgeBackPlugin. When NavBarView is attached after the plugin
is initialized, the plugin doesn't receive the mBackAnimation instance
passed from NavBarView.

This caused the mBackAnimation to be null and broke back gesture on
tablets.

Bug: 220709601
Test: m -j. Test gesture back on tablets.
Change-Id: I8cf70a24ba5340d27bbd48a8e809d8f922992689
(cherry picked from commit 3d010dbc6d729357b425c55070de066da2be1e13)
2 files changed