Merge "Do not let pattern be dragged" into qt-r1-dev
This commit is contained in:
@@ -626,6 +626,13 @@ public class LockPatternView extends View {
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/**
|
||||
* If there are any cells being drawn.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
return mPattern.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the pattern lookup table. Also reset the line fade start times for
|
||||
* the next attempt.
|
||||
|
||||
@@ -248,7 +248,8 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit
|
||||
|
||||
@Override
|
||||
public boolean disallowInterceptTouch(MotionEvent event) {
|
||||
return mLockPatternScreenBounds.contains((int) event.getRawX(), (int) event.getRawY());
|
||||
return !mLockPatternView.isEmpty()
|
||||
|| mLockPatternScreenBounds.contains((int) event.getRawX(), (int) event.getRawY());
|
||||
}
|
||||
|
||||
/** TODO: hook this up */
|
||||
|
||||
@@ -271,8 +271,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
|
||||
mSwipeUpToRetry = mUnlockMethodCache.isUnlockingWithFacePossible()
|
||||
&& securityMode != SecurityMode.SimPin
|
||||
&& securityMode != SecurityMode.SimPuk
|
||||
&& securityMode != SecurityMode.None
|
||||
&& securityMode != SecurityMode.Pattern;
|
||||
&& securityMode != SecurityMode.None;
|
||||
}
|
||||
|
||||
public CharSequence getTitle() {
|
||||
|
||||
Reference in New Issue
Block a user