Inversion-NL / Toon-Android

Toon Android app for rooted Toon devices
MIT License
2 stars 2 forks source link

0.5.10 crashes on graph #27

Closed RoadXY closed 4 years ago

RoadXY commented 4 years ago

Describe the bug App crashes on graph

App version (please complete the following information): 0.5.10

Smartphone (please complete the following information):

Additional context or information

android.content.res.Resources$NotFoundException: 
  at android.content.res.Resources.getValue (Resources.java:2558)
  at android.content.res.Resources.getDrawable (Resources.java:2001)
  at android.content.res.Resources.getDrawable (Resources.java:1987)
  at android.content.Context.getDrawable (Context.java:464)
  at androidx.core.content.ContextCompat.getDrawable (ContextCompat.java:455)
  at com.toonapps.toon.helper.ChartHelper.getSingleTariffDataSet (ChartHelper.java:70)
  at com.toonapps.toon.view.fragments.UsageGraphFragment.setChartData (UsageGraphFragment.java:209)
  at com.toonapps.toon.view.fragments.UsageGraphFragment.onUsageChanged (UsageGraphFragment.java:171)
  at com.toonapps.toon.controller.GasAndElecFlowController.onElecUsageInfoChanged (GasAndElecFlowController.java:80)
  at com.toonapps.toon.controller.GasAndElecFlowController.onResponse (GasAndElecFlowController.java:93)
  at com.toonapps.toon.data.RestClient$4.onResponse (RestClient.java:93)
  at com.toonapps.toon.data.RestClient$4.onResponse (RestClient.java:80)
  at com.android.volley.toolbox.StringRequest.deliverResponse (StringRequest.java:82)
  at com.android.volley.toolbox.StringRequest.deliverResponse (StringRequest.java:29)
  at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run (ExecutorDelivery.java:102)
  at android.os.Handler.handleCallback (Handler.java:739)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:158)
  at android.app.ActivityThread.main (ActivityThread.java:7225)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)