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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user