mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
TaskMenu in overview UI polish
Bug: 188168717 Test: TaskMenuLooks closer to mocks. Change-Id: I1560b66a48c4c70c7c79f7307b2b76f22e30c653
This commit is contained in:
@@ -39,6 +39,7 @@ import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.util.SplitConfigurationOptions.SplitPositionOption;
|
||||
import com.android.launcher3.views.BaseDragLayer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -272,7 +273,7 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTaskMenuLayoutOrientation(DeviceProfile deviceProfile,
|
||||
public void setTaskOptionsMenuLayoutOrientation(DeviceProfile deviceProfile,
|
||||
LinearLayout taskMenuLayout) {
|
||||
if (deviceProfile.isLandscape && !deviceProfile.isTablet) {
|
||||
// Phone landscape
|
||||
@@ -302,6 +303,18 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
lp.height = LinearLayout.LayoutParams.WRAP_CONTENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTaskMenuAroundTaskView(LinearLayout taskView, float margin) {
|
||||
BaseDragLayer.LayoutParams lp = (BaseDragLayer.LayoutParams) taskView.getLayoutParams();
|
||||
lp.topMargin += margin;
|
||||
lp.leftMargin += margin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PointF getAdditionalInsetForTaskMenu(float margin) {
|
||||
return new PointF(0, 0);
|
||||
}
|
||||
|
||||
/* ---------- The following are only used by TaskViewTouchHandler. ---------- */
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user