Ensure tasks are properly resized on disconnect.

Fixes an issue where a task set to minimum bounds on an external
display becomes too small on disconnect. This CL uses the existing
applyFreeformDisplayChange method to resize on disconnect based on
densityDpi of both displays.

Bug: 415222540
Test: Manual, set task to min width/height on external display, then
disconnect.
Flag: com.android.window.flags.enable_display_disconnect_interaction

Change-Id: I25a306578fb1b15c87d231897884230d0df3382f
2 files changed