mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Prevent showing TaskMenuView if icon isn't present
Also fixed another bug where the wrong layout orientation was being applied when overview rotated when launcher was in fixed portrait orientation. Fixes: 160182914 Test: Tested w/ PIP, split screen, w/o split screen w/ and w/o home rotation Change-Id: Iccffb637ae5c22d07745f2108facd4de716dc8d3
This commit is contained in:
@@ -236,8 +236,9 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTaskMenuLayoutOrientation(LinearLayout taskMenuLayout) {
|
||||
return taskMenuLayout.getOrientation();
|
||||
public int getTaskMenuLayoutOrientation(boolean canRecentsActivityRotate,
|
||||
LinearLayout taskMenuLayout) {
|
||||
return canRecentsActivityRotate ? taskMenuLayout.getOrientation() : LinearLayout.VERTICAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user