Crashing on API Level 19
juniorojha opened this issue · 2 comments
I am getting this exception on API Level 19 on multiple devices -
Exception java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
android.content.res.TypedArray.getColor (TypedArray.java:327)
rebus.bottomdialog.Utils.getPrimaryColor (Utils.java:86)
rebus.bottomdialog.Utils.colorStateListText (Utils.java:61)
rebus.bottomdialog.BottomDialog$CustomDialog.addItem (BottomDialog.java:170)
rebus.bottomdialog.BottomDialog.addItem (BottomDialog.java:82)
com.oriserve.ori.ui.fragment.DeviceDetailsTabFragment$2.onClick (DeviceDetailsTabFragment.java:220)
android.view.View.performClick (View.java:4658)
android.view.View$PerformClick.run (View.java:19461)
android.os.Handler.handleCallback (Handler.java:733)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:146)
android.app.ActivityThread.main (ActivityThread.java:5653)
java.lang.reflect.Method.invokeNative (Method.java)
java.lang.reflect.Method.invoke (Method.java:515)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1291)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1107)
dalvik.system.NativeStart.main (NativeStart.java)
Here's my code - http://pastebin.com/0HuCA8rZ
If possible, I'd humbly request you to have a look at it!
facing the same problem!
how to fix this problems?