Merge change I88614e93 into eclair

* changes:
  Fix for 2137900: Be more conservative about poking the wakelock.
This commit is contained in:
Android (Google) Code Review
2009-09-29 18:41:52 -04:00

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