am 98747715: Merge change I88614e93 into eclair

Merge commit '987477159fb003aaf70c7e3ef17c0830fa8fe39c' into eclair-plus-aosp

* commit '987477159fb003aaf70c7e3ef17c0830fa8fe39c':
  Fix for 2137900: Be more conservative about poking the wakelock.
This commit is contained in:
Jim Miller
2009-09-29 15:51:38 -07:00
committed by Android Git Automerger

View File

@@ -212,6 +212,12 @@ public class LockPatternView extends View {
*/
void onPatternCleared();
/**
* The user extended the pattern currently being drawn by one cell.
* @param pattern The pattern with newly added cell.
*/
void onPatternCellAdded(List<Cell> pattern);
/**
* A pattern was detected from the user.
* @param pattern The pattern.
@@ -447,6 +453,9 @@ public class LockPatternView extends View {
private void addCellToPattern(Cell newCell) {
mPatternDrawLookup[newCell.getRow()][newCell.getColumn()] = true;
mPattern.add(newCell);
if (mOnPatternListener != null) {
mOnPatternListener.onPatternCellAdded(mPattern);
}
}
// helper method to find which cell a point maps to