Remove the reader mode button immediately
commitef9850e5ef6552b96de41732eda0746b7d05f06e
authoraruslan <aruslan@chromium.org>
Tue, 9 Jun 2015 00:12:57 +0000 (8 17:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Jun 2015 00:13:22 +0000 (9 00:13 +0000)
tree6370c1a324ea11470d65d40928e0816be50d7439
parentc81aade568e50a098af8fe39cdc8e07b7099fdb6
Remove the reader mode button immediately

In non-compositor mode, remove the Reader mode button immediately.
Attempting to smoothly "dismiss" it might cause SwipeableOverlayView
to remove the view from the parent at the end of animation inside
onLayout, thus causing a crash.

BUG=497727

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

Cr-Commit-Position: refs/heads/master@{#333397}
chrome/android/java_staging/src/org/chromium/chrome/browser/dom_distiller/ReaderModeButtonView.java
chrome/android/java_staging/src/org/chromium/chrome/browser/dom_distiller/ReaderModePanel.java