Don't start animation when a route is connected before view is attached

If a route is already connected from the beginning, show the last frame
of the connected animation rather than play the whole animation.

Bug: 34036139
Test: Call supportInvalidateOptionsMenu() in Support7Demo
Change-Id: I7bf4360b56a4ddebfd03576324ed8d7e4ca95c85
(cherry picked from commit f850471f7a4d52783c4352483ecb8eea71274273)
1 file changed