mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Change taskbar corner roundness when entering overview
- Roundness will be 0 in Launcher, and 1 in an app Bug: 250645563 Test: With and without taskbar in overview, switch between home/overview/app and observe the round corners above taskbar Test: Ensure corner above taskbar is correct in overview and in app when chat bubble is active Change-Id: I1f4911626c8e79fce8d81a76a9bd0d0670d111da
This commit is contained in:
@@ -158,6 +158,15 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the roundness of the round corner above Taskbar.
|
||||
* @param cornerRoundness 0 has no round corner, 1 has complete round corner.
|
||||
*/
|
||||
protected void setCornerRoundness(float cornerRoundness) {
|
||||
mBackgroundRenderer.setCornerRoundness(cornerRoundness);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent ev) {
|
||||
TestLogging.recordMotionEvent(TestProtocol.SEQUENCE_MAIN, "Touch event", ev);
|
||||
|
||||
Reference in New Issue
Block a user