Add drop target button overlap correction to second button only.

Bug: 228311837
Bug: 228311837
Test: manual.
Change-Id: Ib9256deadd58c7350143221bf98c79415aaf9bc4
This commit is contained in:
Pat Manning
2022-04-12 11:50:09 +01:00
parent 4349d21246
commit 7013ee716d

View File

@@ -252,8 +252,7 @@ public class DropTargetBar extends FrameLayout
int overlap = start + leftButton.getMeasuredWidth() + rightButton.getMeasuredWidth()
- end;
if (overlap > 0) {
start -= overlap / 2;
end += overlap / 2;
end += overlap;
}
leftButton.layout(start, 0, start + leftButton.getMeasuredWidth(),