On some devices where it is possible to switch between the system navigation bar and the physical buttons, the notification, when shown at the bottom, will have an additional margin of the height of the navigation bar, even if it is hidden.
private val navigationBarHeight by lazy {
val dimenId = resources.getIdentifier("navigation_bar_height", "dimen", "android")
resources.getDimensionPixelSize(dimenId)
}
apparently, this code will give the default value for the given device, but doesn't take into account whether it's been actually shown or not.
Hey @kpmmmurphy, I've made a PR that should address this issue.
Tested on several devices I have and a couple of emulators to check certain edge-cases like screens with cutouts. Will be happy to hear the feedback.
On some devices where it is possible to switch between the system navigation bar and the physical buttons, the notification, when shown at the bottom, will have an additional margin of the height of the navigation bar, even if it is hidden.
7.1.0
10
OnePlus 5
The issue must be here:
apparently, this code will give the default value for the given device, but doesn't take into account whether it's been actually shown or not.