{"action":"opened","issue":{"url":"https://api.github.com/repos/chenupt/DragTopLayout/issues/10","labels_url":"https://api.github.com/repos/chenupt/DragTopLayout/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/chenupt/DragTopLayout/issues/10/comments","events_url":"https://api.github.com/repos/chenupt/DragTopLayout/issues/10/events","html_url":"https://github.com/chenupt/DragTopLayout/issues/10","id":56777000,"number":10,"title":"Possible Improper State Saving","user":{"login":"marcoRS","id":507510,"avatar_url":"https://avatars.githubusercontent.com/u/507510?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoRS","html_url":"https://github.com/marcoRS","followers_url":"https://api.github.com/users/marcoRS/followers","following_url":"https://api.github.com/users/marcoRS/following{/other_user}","gists_url":"https://api.github.com/users/marcoRS/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoRS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoRS/subscriptions","organizations_url":"https://api.github.com/users/marcoRS/orgs","repos_url":"https://api.github.com/users/marcoRS/repos","events_url":"https://api.github.com/users/marcoRS/events{/privacy}","received_events_url":"https://api.github.com/users/marcoRS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-06T06:53:21Z","updated_at":"2015-02-06T06:53:21Z","closed_at":null,"body":"Saw this crash on a Huawei P7 L10, which seems to be related to improper state saving. I have verified that \"gigSlidingLayout\" is a unique id only used by one view.  Great library by the way!\r\n\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{re.snapwi.android/re.snapwi.ui.HomeActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.view.View$BaseSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/gigSlidingLayout. Make sure other views do not use the same id.\r\n       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2279)\r\n       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2329)\r\n       at android.app.ActivityThread.access$1100(ActivityThread.java:141)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1242)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:136)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5271)\r\n       at java.lang.reflect.Method.invokeNative(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:515)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:851)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:667)\r\n       at dalvik.system.NativeStart.main(NativeStart.java)\r\nCaused by: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.view.View$BaseSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/gigSlidingLayout. Make sure other views do not use the same id.\r\n       at android.view.View.onRestoreInstanceState(View.java:12850)\r\n       at github.chenupt.dragtoplayout.DragTopLayout.onRestoreInstanceState(DragTopLayout.java:316)\r\n       at android.view.View.dispatchRestoreInstanceState(View.java:12826)\r\n       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2639)\r\n       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2645)\r\n       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2645)\r\n       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2645)\r\n       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2645)\r\n       at android.view.View.restoreHierarchyState(View.java:12804)\r\n       at android.support.v4.app.Fragment.restoreViewState(Fragment.java:465)\r\n       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:969)\r\n       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126)\r\n       at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108)\r\n       at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1917)\r\n       at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:544)\r\n       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1175)"}}