Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fbbbb66 authored by Adam Powell's avatar Adam Powell
Browse files

Fiddle with keyguard glowpad layouts

Also add hierarchyviewer support for KeyguardSecurityView LayoutParams

Bug 7497272
Bug 7459668

Change-Id: I5d03751571d0af66f4c9d08a9d9ca476b32735ac
parent d8e2fdf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,5 +22,5 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:layout_marginBottom="-80dp"/>
        android:layout_marginBottom="-60dp"/>
</merge>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
    android:id="@+id/keyguard_selector_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_maxWidth="@dimen/keyguard_security_width"
    android:layout_maxWidth="420dp"
    android:layout_maxHeight="@dimen/keyguard_security_height"
    android:clipChildren="false"
    android:clipToPadding="false"
+7 −3
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package com.android.internal.policy.impl.keyguard;

import com.android.internal.R;
import com.android.internal.widget.LockPatternUtils;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Rect;
@@ -23,14 +26,12 @@ import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewDebug;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.ViewFlipper;

import com.android.internal.R;
import com.android.internal.widget.LockPatternUtils;

/**
 * Subclass of the current view flipper that allows us to overload dispatchTouchEvent() so
 * we can emulate {@link WindowManager.LayoutParams#FLAG_SLIPPERY} within a view hierarchy.
@@ -246,7 +247,10 @@ public class KeyguardSecurityViewFlipper extends ViewFlipper implements Keyguard
    }

    public static class LayoutParams extends FrameLayout.LayoutParams {
        @ViewDebug.ExportedProperty(category = "layout")
        public int maxWidth;

        @ViewDebug.ExportedProperty(category = "layout")
        public int maxHeight;

        public LayoutParams(ViewGroup.LayoutParams other) {