Crash: Resources.NotFoundException in GoogleCalendarIcon.getDrawable

Open Beginner friendly
#2,837 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, java
Domain
mobile-dev

Research direction

The crash comes from GoogleCalendarIcon.getDrawable in fr.neamar.kiss.ui, which only catches NameNotFoundException. Start by reading that method around line 36 and the ResourcesCompat.getDrawable call, then look at how SystemIconPack.getComponentDrawable reaches it. Done when a Resources.NotFoundException from the day icon falls back to the regular calendar icon without crashing.

Written by the indexing model from the issue text.

Description

crash
Type Crash
Affected users (last 30 days) 1
Reports (last 30 days) 4
App versions 226
Android API levels 22
Sample device Lenovo K5, API 22, v226

Play Console issue ID: 7a41fe5499fddb8ee41f0fc021bbc2ff

android.content.res.Resources$NotFoundException
  at android.content.res.Resources.getDrawable (Resources.java:802)
  at androidx.core.content.res.ResourcesCompat.getDrawable (ResourcesCompat.java:136)
  at fr.neamar.kiss.ui.GoogleCalendarIcon.getDrawable (GoogleCalendarIcon.java:36)
  at fr.neamar.kiss.icons.SystemIconPack.getComponentDrawable (SystemIconPack.java:62)
  at fr.neamar.kiss.IconsHandler.getDrawableIconForPackage (IconsHandler.java:252)
  at fr.neamar.kiss.result.AppResult.getDrawable (AppResult.java:303)

The Google Calendar metadata points to a day icon resource that can't be loaded on this device. GoogleCalendarIcon.getDrawable only catches NameNotFoundException, so the Resources.NotFoundException crashes the icon loading task. Falling back to the regular icon would be enough. Unchanged on master.

Dominant language
Java
Stars
3.5k
Forks
664
Avg merge
21h 40m
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Neamar/KISS

All issues in Neamar/KISS

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.