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
+6
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;