Do not set density on disconnect/reconnect.
The density changes do not appear to have any benefit on task sizing (since this is handled by applyFreeformDisplayChange on disconnect and stored taskBounds on reconnect), and actually are the root cause of a couple visual bugs. Usage of wct.setDensityDpi sets CONFIG_DENSITY, which indicates the task will be responsible for density changes in future; meaning it stops adapting to display density. Bug: 440239065 Bug: 438866291 Test: Manual; disconnect/reconnect, observe no size issues and overview appears correct. Flag: com.android.window.flags.enable_display_disconnect_interaction Flag: com.android.window.flags.enable_display_reconnect_interaction Change-Id: Ib130ac0d19b9d86534409265bcb99a472a0a23a0
Loading
Please register or sign in to comment