Finish StackLayout animations when back button is pressed
commit11e50618e6144f9e9b717f8192f096b7bdcb461b
authortwellington <twellington@chromium.org>
Thu, 20 Aug 2015 00:06:40 +0000 (19 17:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Aug 2015 00:07:40 +0000 (20 00:07 +0000)
treedef2b1a9fb966ab3b8edae5e0014b51ed48f50d4
parentcf85c148065a417c15bc4a3e7f664c1a661446a5
Finish StackLayout animations when back button is pressed

Previously, if the back button was pressed before the close all tabs
animation was finished, we ended up with 0 tabs and a (mostly) blank
screen. Forcing the animation to finish in StackLayout.onBackPressed()
allows Chrome to close as it should when back is pressed and there are
no tabs.

BUG=522447

Review URL: https://codereview.chromium.org/1290223007

Cr-Commit-Position: refs/heads/master@{#344366}
chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/StackLayout.java