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

Bug java.lang.IllegalArgumentException #6

Open
ModirGithub opened this issue Jul 31, 2017 · 1 comment
Open

Bug java.lang.IllegalArgumentException #6

ModirGithub opened this issue Jul 31, 2017 · 1 comment

Comments

@ModirGithub
Copy link

ModirGithub commented Jul 31, 2017

#When Parent Activity Layout # Rotated:
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.os.Bundle instead. This usually happens when two views of different type have the same id in the same hierarchy

Force Close Resolved But Not Complate:
1-
@Override protected Parcelable onSaveInstanceState() { final Bundle bundle = new Bundle(); bundle.putParcelable("superState", super.onSaveInstanceState()); bundle.putInt("stuff", this.stuff); bundle.putParcelable(INSTANCE_STATE, super.onSaveInstanceState());

2-
@Override protected void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { final Bundle bundle = (Bundle) state; this.stuff = bundle.getInt("stuff"); // ... load stuff state = bundle.getParcelable("superState");

in ArrowDownloadButton Class

bug

Please Help

@zjamshidi
Copy link

zjamshidi commented Sep 5, 2020

I'm facing the same issue. any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants