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

Commit 85e8f3e5 authored by helen cheuk's avatar helen cheuk Committed by Helen Cheuk
Browse files

Return null when resource not found for key glyph

Bug: 375193692
Test: Manual
Flag: com.android.hardware.input.keyboard_glyph_map
Change-Id: I8df428cfadb0e16bb8e6b2d47a4089fa7b522fb0
parent 1f632685
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -170,6 +170,8 @@ public final class KeyGlyphMap implements Parcelable {
            return resources.getDrawable(drawableRes, null);
        } catch (PackageManager.NameNotFoundException ignored) {
            Log.e(TAG, "Package name not found for " + mComponentName);
        } catch (Resources.NotFoundException ignored) {
            Log.e(TAG, "Resource not found for " + mComponentName);
        }
        return null;
    }