Catch Throwable as NoSuchMethodError isn't an Exception.

Bug: 17462165
Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
This commit is contained in:
Kenny Guy
2014-09-11 13:44:05 +01:00
parent 8e894faadf
commit 49909c2b33
2 changed files with 4 additions and 4 deletions
@@ -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;
}
@@ -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;
}
}
@@ -68,8 +68,8 @@ public class UserManagerCompatVL extends UserManagerCompatV17 {
// STOPSHIP(mokani): Remove catch block once dogfood build is bigger than LRW70.
// This hack is just to prevent crash in older builds.
try {
return mPm.getUserBadgedLabel(label, user.getUser());
} catch (Exception e) {
return mPm.getUserBadgedLabel(label, user.getUser());
} catch (Throwable e) {
return label;
}
}