{"action":"created","issue":{"url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/24","labels_url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/24/comments","events_url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/24/events","html_url":"https://github.com/akexorcist/Android-RoundCornerProgressBar/issues/24","id":94304266,"number":24,"title":"RuntimeException: Parcel android.os.Parcel@3d770ee5: Unmarshalling unknown type code 7471204 at offset 2264","user":{"login":"aminelaadhari","id":1357594,"avatar_url":"https://avatars.githubusercontent.com/u/1357594?v=3","gravatar_id":"","url":"https://api.github.com/users/aminelaadhari","html_url":"https://github.com/aminelaadhari","followers_url":"https://api.github.com/users/aminelaadhari/followers","following_url":"https://api.github.com/users/aminelaadhari/following{/other_user}","gists_url":"https://api.github.com/users/aminelaadhari/gists{/gist_id}","starred_url":"https://api.github.com/users/aminelaadhari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminelaadhari/subscriptions","organizations_url":"https://api.github.com/users/aminelaadhari/orgs","repos_url":"https://api.github.com/users/aminelaadhari/repos","events_url":"https://api.github.com/users/aminelaadhari/events{/privacy}","received_events_url":"https://api.github.com/users/aminelaadhari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T13:10:50Z","updated_at":"2015-07-15T08:56:54Z","closed_at":null,"body":"There is some issues with view state restoring:\r\n\r\nSavedState of BaseRoundCornerProgressBar does not write all the values in write in writeToParcel, \r\ncorrect code is:\r\n\r\n```        @Override\r\n        public void writeToParcel(Parcel out, int flags) {\r\n            super.writeToParcel(out, flags);\r\n            out.writeFloat(this.max);\r\n            out.writeFloat(this.progress);\r\n            out.writeFloat(this.secondaryProgress);\r\n\r\n            out.writeInt(this.backgroundWidth);\r\n            out.writeInt(this.backgroundHeight);\r\n            out.writeInt(this.radius);\r\n            out.writeInt(this.padding);\r\n            out.writeInt(this.progressColor);\r\n            out.writeInt(this.secondaryProgressColor);\r\n            out.writeInt(this.backgroundColor);\r\n\r\n            out.writeInt(this.layoutBackgroundColor);\r\n            out.writeInt(this.layoutProgress);\r\n            out.writeInt(this.layoutSecondaryProgress);\r\n\r\n            out.writeByte((byte) (this.isProgressBarCreated ? 1 : 0));\r\n            out.writeByte((byte) (this.isProgressSetBeforeDraw ? 1 : 0));\r\n            out.writeByte((byte) (this.isMaxProgressSetBeforeDraw ? 1 : 0));\r\n            out.writeByte((byte) (this.isBackgroundColorSetBeforeDraw ? 1 : 0));\r\n            out.writeByte((byte) (this.isProgressColorSetBeforeDraw ? 1 : 0));\r\n            out.writeByte((byte) (this.isScreenMeasure ? 1 : 0));\r\n            out.writeByte((byte) (this.isBackgroundLayourSet ? 1 : 0));\r\n        }\r\n```\r\n\r\nAfter fixing this issue I am getting other issues with IconRoundCornerProgressBar\r\nCaused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.ake\r\n                            xorcist.roundcornerprogressbar.common.BaseRoundCornerProgressBar$SavedState\r\n                         E      at android.os.Parcel.readParcelableCreator(Parcel.java:2289)\r\n                         E      at android.os.Parcel.readParcelable(Parcel.java:2239)\r\n                         E      at android.view.AbsSavedState.<init>(AbsSavedState.java:57)\r\n                         E      at android.view.View$BaseSavedState.<init>(View.java:20038)\r\n                         E      at com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar$SavedState.<init>(IconRo\r\n                            undCornerProgressBar.java:216)\r\n                         E      at com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar$SavedState.<init>(IconRo\r\n                            undCornerProgressBar.java:202)\r\n                         E      at com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar$SavedState$1.createFromP\r\n                            arcel(IconRoundCornerProgressBar.java:240)\r\n                         E      at com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar$SavedState$1.createFromP\r\n                            arcel(IconRoundCornerProgressBar.java:238)\r\n                         E      at android.os.Parcel.readParcelable(Parcel.java:2246)\r\n                         E      at android.os.Parcel.readValue(Parcel.java:2146)\r\n                         E      at android.os.Parcel.readSparseArrayInternal(Parcel.java:2540)\r\n                         E      at android.os.Parcel.readSparseArray(Parcel.java:1868)\r\n                         E      at android.os.Parcel.readValue(Parcel.java:2203)\r\n                         E      at android.os.Parcel.readArrayMapInternal(Parcel.java:2479)\r\n                         E      at android.os.BaseBundle.unparcel(BaseBundle.java:221)\r\n                         E      at android.os.Bundle.getSparseParcelableArray(Bundle.java:871)\r\n                         E      at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1979)\r\n                         E      at android.app.Activity.onRestoreInstanceState(Activity.java:1022)\r\n                         E      at android.app.Activity.performRestoreInstanceState(Activity.java:977)\r\n                         E      at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1161)\r\n                         E      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2271)\r\n\r\nAll tested with the sample prject and with don't keep actitivties activated"},"comment":{"url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/comments/121534732","html_url":"https://github.com/akexorcist/Android-RoundCornerProgressBar/issues/24#issuecomment-121534732","issue_url":"https://api.github.com/repos/akexorcist/Android-RoundCornerProgressBar/issues/24","id":121534732,"user":{"login":"scana","id":1139325,"avatar_url":"https://avatars.githubusercontent.com/u/1139325?v=3","gravatar_id":"","url":"https://api.github.com/users/scana","html_url":"https://github.com/scana","followers_url":"https://api.github.com/users/scana/followers","following_url":"https://api.github.com/users/scana/following{/other_user}","gists_url":"https://api.github.com/users/scana/gists{/gist_id}","starred_url":"https://api.github.com/users/scana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scana/subscriptions","organizations_url":"https://api.github.com/users/scana/orgs","repos_url":"https://api.github.com/users/scana/repos","events_url":"https://api.github.com/users/scana/events{/privacy}","received_events_url":"https://api.github.com/users/scana/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T08:56:54Z","updated_at":"2015-07-15T08:56:54Z","body":"It has been fixed today with #16 "}}