-
Notifications
You must be signed in to change notification settings - Fork 154
Description
#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
Please Help
