Fix screenrecord crash in next due to DisplayWindowPropertiesRepository

DisplayWindowPropertiesRepository should be instantiated only when some flags are on, and they were still off in next.
As there are no presubmits exercising this on next, this only failed in postsubmits.

Bug: 424690468
Flag: com.android.systemui.shade_window_goes_around
Test: ScreenRecordPermissionDialogDelegateTest
Change-Id: Ied12049178c30b407ef3717721eede2af7e16952
2 files changed