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

Commit 193a9209 authored by Romain Guy's avatar Romain Guy Committed by The Android Automerger
Browse files

Fix crash in app widgets

Bug #9983130

Change-Id: Ie2319c9e8f6e7591c03061224021973b94ae07cb
parent 6f1fcce8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -763,7 +763,11 @@ public class RemoteViews implements Parcelable, Filter {
            method = methods.get(mPair);
            if (method == null) {
                try {
                    if (paramType == null) {
                        method = klass.getMethod(methodName);
                    } else {
                        method = klass.getMethod(methodName, paramType);
                    }
                } catch (NoSuchMethodException ex) {
                    throw new ActionException("view: " + klass.getName() + " doesn't have method: "
                            + methodName + getParameters(paramType));