Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on landscape mode on comment activity #91

Closed
nicolas-f opened this issue Oct 17, 2016 · 1 comment

Comments

@nicolas-f
Copy link
Member

commented Oct 17, 2016

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.noise_planet.noisecapture/org.noise_planet.noisecapture.CommentActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatImageButton cannot be cast to android.widget.Button
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2521)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595)
    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4203)
    at android.app.ActivityThread.access$900(ActivityThread.java:178)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1476)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5624)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: java.lang.ClassCastException: android.support.v7.widget.AppCompatImageButton cannot be cast to android.widget.Button
    at org.noise_planet.noisecapture.CommentActivity.onCreate(CommentActivity.java:119)
    at android.app.Activity.performCreate(Activity.java:6128)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2468)
    ... 11 more

nicolas-f added a commit to nicolas-f/NoiseCapture that referenced this issue Oct 17, 2016

nicolas-f added a commit that referenced this issue Oct 18, 2016

@nicolas-f

This comment has been minimized.

Copy link
Member Author

commented Oct 20, 2016

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.