Fixing a few landscape issues.

- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226)
- Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226)
- Fixing regression where the market button had no press feedback

Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
This commit is contained in:
Winson Chung
2011-11-28 13:02:56 -08:00
parent 8171d8ce48
commit e96e5cb768
6 changed files with 36 additions and 27 deletions

View File

@@ -633,6 +633,12 @@ public class DragLayer extends FrameLayout {
@Override
protected int getChildDrawingOrder(int childCount, int i) {
// We don't want to prioritize the workspace drawing on top of the other children in
// landscape for the overscroll event.
if (LauncherApplication.isScreenLandscape(getContext())) {
return super.getChildDrawingOrder(childCount, i);
}
if (mWorkspaceIndex == -1 || mQsbIndex == -1 ||
mLauncher.getWorkspace().isDrawingBackgroundGradient()) {
return i;

View File

@@ -3526,11 +3526,13 @@ public class Workspace extends SmoothPagedView
mOverscrollFade = fade;
float reducedFade = 0.5f + 0.5f * (1 - fade);
final ViewGroup parent = (ViewGroup) getParent();
final ImageView qsbDivider = (ImageView) (parent.findViewById(R.id.qsb_divider));
final ImageView dockDivider = (ImageView) (parent.findViewById(R.id.dock_divider));
final ImageView scrollIndicator = getScrollingIndicator();
cancelScrollingIndicatorAnimations();
dockDivider.setAlpha(reducedFade);
if (qsbDivider != null) qsbDivider.setAlpha(reducedFade);
if (dockDivider != null) dockDivider.setAlpha(reducedFade);
scrollIndicator.setAlpha(1 - fade);
}
}