On the OnePlus 3 and 6, when the navbar is disabled (as by default), getNavbarHeight still returns a large positive value.
I've attempted a few different ways of obtaining screen height, but some don't take in account of notches, others don't work on emulators surprisingly - those ones also don't work when oneplus has software navbar enabled.
On the OnePlus 3 and 6, when the navbar is disabled (as by default), getNavbarHeight still returns a large positive value.
I've attempted a few different ways of obtaining screen height, but some don't take in account of notches, others don't work on emulators surprisingly - those ones also don't work when oneplus has software navbar enabled.