java.lang.ClassCastException: nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity

GitHub | galadril | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.ClassCastException: nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity

    GitHub | 9 months ago | galadril
    java.lang.ClassCastException: nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity
  2. 0

    java.lang.ClassCastException: nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity

    GitHub | 9 months ago | galadril
    java.lang.ClassCastException: nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity

    Root Cause Analysis

    1. java.lang.ClassCastException

      nl.hnogames.domoticz.PlanActivity cannot be cast to nl.hnogames.domoticz.MainActivity

      at nl.hnogames.domoticz.Fragments.Dashboard.toggleSwitch()
    2. nl.hnogames.domoticz
      DashboardAdapter$8.onCheckedChanged
      1. nl.hnogames.domoticz.Fragments.Dashboard.toggleSwitch(Dashboard.java:346)
      2. nl.hnogames.domoticz.Fragments.Dashboard.onSwitchClick(Dashboard.java:339)
      3. nl.hnogames.domoticz.Adapters.DashboardAdapter.handleOnOffSwitchClick(DashboardAdapter.java:1541)
      4. nl.hnogames.domoticz.Adapters.DashboardAdapter.access$300(DashboardAdapter.java:59)
      5. nl.hnogames.domoticz.Adapters.DashboardAdapter$8.onCheckedChanged(DashboardAdapter.java:623)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.widget.CompoundButton.setChecked(CompoundButton.java:165)
      2. android.widget.Switch.setChecked(Switch.java:1138)
      3. android.widget.Switch.toggle(Switch.java:1133)
      4. android.widget.CompoundButton.performClick(CompoundButton.java:123)
      5. android.view.View$PerformClick.run(View.java:22526)
      6. android.os.Handler.handleCallback(Handler.java:739)
      7. android.os.Handler.dispatchMessage(Handler.java:95)
      8. android.os.Looper.loop(Looper.java:158)
      9. android.app.ActivityThread.main(ActivityThread.java:7224)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames