am 49909c2b: Catch Throwable as NoSuchMethodError isn\'t an Exception.

* commit '49909c2b336de95de2543af0ebe3b7554fe05a6c':
  Catch Throwable as NoSuchMethodError isn't an Exception.
This commit is contained in:
Kenny Guy
2014-09-11 13:02:42 +00:00
committed by Android Git Automerger
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;
}
}