Hide hotseat in landscape overview

Bug: 70179916
Change-Id: Ib277a054cf16233ab9156a4448c41952e3295fae
This commit is contained in:
Tony Wickham
2017-12-05 14:24:37 -08:00
parent de5535a1ec
commit a447bd884b
5 changed files with 23 additions and 7 deletions

View File

@@ -56,6 +56,11 @@ public class OverviewState extends LauncherState {
return new float[] {scale, pageRect.top - childTop};
}
@Override
public float getHoseatAlpha(Launcher launcher) {
return launcher.getDeviceProfile().isVerticalBarLayout() ? 0 : 1;
}
@Override
public void onStateEnabled(Launcher launcher) {
RecentsView rv = launcher.getOverviewPanel();