-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set elevation 0 when creating TopBar
Apparently TopBar elevation property is animated. Meaning that if 4dp elevation is set, when the view appears its elevation is animated from 0dp to 4dp. This resulted in rare race condition where the onAnimationEnd callback was called after we set the desired elevation value, and an unexpected elevation value was set.
- Loading branch information
Showing
2 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters