am 18b5b1f4: am a15eeacf: Merge "Fix bug where it wasn\'t possible to add widgets" into jb-mr1-lockscreen-dev

* commit '18b5b1f46298ad35398d8ba3dbd3156ad14296e6':
  Fix bug where it wasn't possible to add widgets
This commit is contained in:
Michael Jurka
2012-10-29 14:23:08 -07:00
committed by Android Git Automerger

View File

@@ -1125,7 +1125,7 @@ public class LockPatternUtils {
if (widgets == null) {
return false;
}
if (index < 0 || index >= widgets.length) {
if (index < 0 || index > widgets.length) {
return false;
}
int[] newWidgets = new int[widgets.length + 1];