farbodsz / TimetableApp

The modern way to manage your school life.
Apache License 2.0
2 stars 2 forks source link

Resources$NotFoundException for accent colors on ClassDetailActivity #255

Closed farbodsz closed 7 years ago

farbodsz commented 7 years ago

Some colors like grey don't have accent colors which is why the Resources$NotFoundException occurs.

Caused by: android.content.res.Resources$NotFoundException: 
  at android.content.res.Resources.getValue(Resources.java:2327)
  at android.content.res.Resources.getColor(Resources.java:2009)
  at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:0)
  at co.timetableapp.ui.classes.ClassDetailActivity.setupLayout(ClassDetailActivity.java:0)
  at co.timetableapp.ui.base.ItemDetailActivity.onCreate(ItemDetailActivity.java:0)
  at android.app.Activity.performCreate(Activity.java:5447)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2393)

This has occurred a lot on devices according to the Play Developer Console.