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

Commit a9768609 authored by Jim Miller's avatar Jim Miller
Browse files

Attempt to fix NegativeArraySizeException crash in keyguard

Fixes bug 7490924

Change-Id: I974c9b7a4fb3de536efe9d47cdd480190772a1be
parent 9edc48e2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1172,6 +1172,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) {