The calculated opaque bar height was not being correctly applied after having changed so this PR fixes that by making sure the height is set on the opaque bar view right after calculating it in the OnApplyWindowInsetsListener.
Then, instead of setting the height at a later moment when the bar needs to be shown, we're only setting the visibility attribute to handle show/hide behavior, making it more precise.
To test:
Using a Pixel 4a (device with a screen taller than 9:16)
On WPAndroid: create a Story, add a slide, publish it
Fix #664
The calculated opaque bar height was not being correctly applied after having changed so this PR fixes that by making sure the height is set on the opaque bar view right after calculating it in the
OnApplyWindowInsetsListener
.Then, instead of setting the height at a later moment when the bar needs to be shown, we're only setting the
visibility
attribute to handle show/hide behavior, making it more precise.To test: Using a Pixel 4a (device with a screen taller than 9:16)