commit | aec7dbd2e7f30bb87d42fa6354c53dcc645b6f56 | [log] [tgz] |
---|---|---|
author | Lucas Silva <lusilva@google.com> | Thu Oct 10 10:08:27 2024 -0400 |
committer | Lucas Silva <lusilva@google.com> | Tue Oct 15 19:20:59 2024 +0000 |
tree | 88844092528ac3c9827907c68a351def272e1337 | |
parent | 3267e5259c7a15394a351b58880e06b08f340415 [diff] |
Update drag-and-drop to support resizeable widgets We updated the hit-detection to consider if the dragging item contains the center of any other item, instead of the other way around. We also keep track of the previous target item to prevent rapidly oscillating between two items. Bug: 368056271 Test: UI update, manually on the device by dragging items of different sizes Flag: com.android.systemui.communal_widget_resizing Change-Id: Ibf0c24cfde7a098d305443dd79c729d098ecbc42