Turns out my suspicions were correct and all I had to do was update the WindowManager
when appropriate! In this case I had a WindowCallback
class that implemented Window.Callback
and I could perform the update to the window manager there. The callback was called anytime the device orientation changed so the WindowManager
object was always updated when the height and width flipped. A little annoying this is only an issue on newer versions of android (I think 30+) but glad it's resolved.