OSDN Git Service

Temporary fix for qsb and hotseat clicking issues
authorAdam Cohen <adamcohen@google.com>
Thu, 23 Aug 2012 19:18:16 +0000 (12:18 -0700)
committerThe Android Automerger <android-build@android.com>
Thu, 23 Aug 2012 21:20:10 +0000 (14:20 -0700)
Change-Id: I3fca1e3dada12c8655887c3d7a2200b6fcfac19c

res/layout-port/launcher.xml
res/layout-sw720dp/launcher.xml
src/com/android/launcher2/DragLayer.java

index 743ec51..a427501 100644 (file)
         <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
     </com.android.launcher2.Workspace>
 
-    <include
-        android:id="@+id/qsb_bar"
-        layout="@layout/qsb_bar" />
-
     <include layout="@layout/hotseat"
         android:id="@+id/hotseat"
         android:layout_width="match_parent"
         android:layout_height="@dimen/button_bar_height_plus_padding"
         android:layout_gravity="bottom" />
 
+    <include
+        android:id="@+id/qsb_bar"
+        layout="@layout/qsb_bar" />
+
     <com.android.launcher2.DrawableStateProxyView
         android:id="@+id/voice_button_proxy"
         android:layout_width="80dp"
index a9c3c8d..9ddb135 100644 (file)
         <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
     </com.android.launcher2.Workspace>
 
-    <include
-        android:id="@+id/qsb_bar"
-        layout="@layout/qsb_bar" />
-
     <include layout="@layout/hotseat"
         android:id="@+id/hotseat"
         android:layout_width="match_parent"
         android:layout_height="@dimen/button_bar_height_plus_padding"
         android:layout_gravity="bottom" />
 
+    <include
+        android:id="@+id/qsb_bar"
+        layout="@layout/qsb_bar" />
+
     <com.android.launcher2.DrawableStateProxyView
         android:id="@+id/voice_button_proxy"
         android:layout_width="80dp"
index 0bcd64c..a30e091 100644 (file)
@@ -698,13 +698,10 @@ public class DragLayer extends FrameLayout implements ViewGroup.OnHierarchyChang
 
     @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 || 
+        // TODO: We have turned off this custom drawing order because it now effects touch
+        // dispatch order. We need to sort that issue out and then decide how to go about this.
+        if (true || LauncherApplication.isScreenLandscape(getContext()) ||
+                mWorkspaceIndex == -1 || mQsbIndex == -1 ||
                 mLauncher.getWorkspace().isDrawingBackgroundGradient()) {
             return i;
         }