[Android][TouchToFill] Use HALF state instead of PEEK and add fail-safe
Before this CL, the touch to fill sheet was intially shown in a very high PEEK state (which provides pixel-exact height control). The PEEK state had the side effect that the scrim view wasn't brought up reliably (see linked bug). Therefore, it is skipped now and instead, the half state is invoked right away. To the user, this looks and behaves exaclty the same but triggers the scrim view more reliably. Additionally, there is a small fail-safe that would have fixed the issue on its own (just not as clean). The fail-safe ensures the sheet is dismissed as soon as there the BottomSheet enters the HIDDEN state, even if the observer wasn't notified that is was closed beforehand. Minifix: the bottom sheet vertical size seems to align with Chrome now, so set the margin of the "Manage Passwords" button back to 8dp. Bug: 1017727 Change-Id: I66ddef169a96d43a059bd7f065195c03783d595f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879447Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#709118}
Showing
Please register or sign in to comment