mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Rotate Overview Task Action Menu
Fixes: 153371258 Test: Tap on icon in portrait, landscape and seascape. Open menu then rotate phone. Change-Id: I38b018371561b502fe211a3c2ddea4ff7fde4274
This commit is contained in:
@@ -30,6 +30,7 @@ import android.view.Surface;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.PagedView;
|
||||
@@ -221,6 +222,31 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getTaskMenuX(float x, View thumbnailView) {
|
||||
return x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getTaskMenuY(float y, View thumbnailView) {
|
||||
return y;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTaskMenuWidth(View view) {
|
||||
return view.getMeasuredWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTaskMenuLayoutOrientation() {
|
||||
return LinearLayout.VERTICAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLayoutParamsForTaskMenuOptionItem(LinearLayout.LayoutParams lp) {
|
||||
// no-op, defaults are fine
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChildBounds getChildBounds(View child, int childStart, int pageCenter,
|
||||
boolean layoutChild) {
|
||||
|
||||
Reference in New Issue
Block a user