Catch Throwable as NoSuchMethodError isn't an Exception.
Bug: 17462165 Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user