Merge "DO NOT MERGE: Add another exception to the nearby-sharing chip code." into qt-qpr1-dev

This commit is contained in:
Daniel Sandler
2020-01-08 15:10:35 +00:00
committed by Android (Google) Code Review

View File

@@ -952,7 +952,9 @@ public class ChooserActivity extends ResolverActivity {
name = pkgRes.getString(nameResId);
final int resId = metaData.getInt(CHIP_ICON_METADATA_KEY);
icon = pkgRes.getDrawable(resId);
} catch (NameNotFoundException ex) { }
} catch (Resources.NotFoundException ex) {
} catch (NameNotFoundException ex) {
}
}
if (TextUtils.isEmpty(name)) {
name = ri.loadLabel(getPackageManager());