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

Commit 49909c2b authored by Kenny Guy's avatar Kenny Guy
Browse files

Catch Throwable as NoSuchMethodError isn't an Exception.

Bug: 17462165
Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
parent 8e894faa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ class AppWidgetManagerCompatVL extends AppWidgetManagerCompat {
        try {
            drawable = mPm.getUserBadgedDrawableForDensity(new BitmapDrawable(res, bitmap),
                    info.getProfile(), badgeLocation, 0);
        } catch (Exception e) {
        } catch (Throwable e) {
            return bitmap;
        }

+3 −3
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public class UserManagerCompatVL extends UserManagerCompatV17 {
        // This hack is just to prevent crash in older builds.
        try {
            return mPm.getUserBadgedIcon(unbadged, user.getUser());
        } catch (Exception e) {
        } catch (Throwable e) {
            return unbadged;
        }
    }
@@ -69,7 +69,7 @@ public class UserManagerCompatVL extends UserManagerCompatV17 {
        // This hack is just to prevent crash in older builds.
        try {
            return mPm.getUserBadgedLabel(label, user.getUser());
        } catch (Exception e) {
        } catch (Throwable e) {
            return label;
        }
    }