Skip to content

Commit a15eeac

Browse files
mikejurkaAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug where it wasn't possible to add widgets" into jb-mr1-lockscreen-dev
2 parents 369f1c9 + 229dd8b commit a15eeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/com/android/internal/widget/LockPatternUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ public boolean addAppWidget(int widgetId, int index) {
11251125
if (widgets == null) {
11261126
return false;
11271127
}
1128-
if (index < 0 || index >= widgets.length) {
1128+
if (index < 0 || index > widgets.length) {
11291129
return false;
11301130
}
11311131
int[] newWidgets = new int[widgets.length + 1];

0 commit comments

Comments
 (0)