Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 229dd8b3 authored by Michael Jurka's avatar Michael Jurka
Browse files

Fix bug where it wasn't possible to add widgets

- Happened when you were down to 0 widgets (which
won't be possible in future, but fixing this as
well)
parent 011717d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];