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

Commit 8fb38e32 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Catch NotFoundException in getDrawableForDensity" into main

parents b36585a1 824fb783
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1195,7 +1195,12 @@ public class ResolverListAdapter extends BaseAdapter {

        @Nullable
        protected Drawable loadIconFromResource(Resources res, int resId) {
            try {
                return res.getDrawableForDensity(resId, mIconDpi);
            } catch (Resources.NotFoundException e) {
                Log.e(TAG, "Resource not found", e);
                return null;
            }
        }

    }