Detect Mi 9 full screen gesture mode programmatically

Search This thread

minh.dao

New member
Aug 16, 2019
1
0
Hello everyone,

I'm writing an application which requires the height of screen to render. The problem is that I couldn't find any android's package to know if the full screen gesture mode was turned on or off to calculate the real height of the screen. Is there any way to check that mode, or even better, to get the real height that I can display my content?

Thank you very much!