mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Add drop target button overlap correction to second button only.
Bug: 228311837 Bug: 228311837 Test: manual. Change-Id: Ib9256deadd58c7350143221bf98c79415aaf9bc4
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user