Check the current runtime orientation in updateCompatDisplayInsets

Right now we are checking the static runtime orientation from ActivityInfo in updateCompatDisplayInsets. This can be obsolete, so we need to start checking the current one from the most recent requested configuration.

Fix: 264276741
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:SizeCompatTests

Change-Id: I0ef411c4eb67f539352d8dbf521a6b9672b47fcc
2 files changed