OSDN Git Service

A few small missing things from the custom action bar layout.
[android-x86/frameworks-base.git] / core / java / com / android / internal / widget / ActionBarOverlayLayout.java
index 699fa6e..79dadd7 100644 (file)
@@ -208,6 +208,16 @@ public class ActionBarOverlayLayout extends ViewGroup {
     }
 
     @Override
+    protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
+        return new LayoutParams(p);
+    }
+
+    @Override
+    protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
+        return p instanceof LayoutParams;
+    }
+
+    @Override
     protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
         int maxHeight = 0;
         int maxWidth = 0;
@@ -336,6 +346,11 @@ public class ActionBarOverlayLayout extends ViewGroup {
         }
     }
 
+    @Override
+    public boolean shouldDelayChildPressedState() {
+        return false;
+    }
+
     void pullChildren() {
         if (mContent == null) {
             mContent = findViewById(com.android.internal.R.id.content);