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

Commit 23b94022 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 3a191b49: am f3add313: am 3c9297c3: Merge "Attempt to fix...

am 3a191b49: am f3add313: am 3c9297c3: Merge "Attempt to fix NegativeArraySizeException crash in keyguard" into jb-mr1-lockscreen-dev

* commit '3a191b49':
  Attempt to fix NegativeArraySizeException crash in keyguard
parents ebb0b118 3a191b49
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1167,6 +1167,10 @@ public class LockPatternUtils {
    public boolean removeAppWidget(int widgetId) {
        int[] widgets = getAppWidgets();

        if (widgets.length == 0) {
            return false;
        }

        int[] newWidgets = new int[widgets.length - 1];
        for (int i = 0, j = 0; i < widgets.length; i++) {
            if (widgets[i] == widgetId) {