{"action":"created","issue":{"url":"https://api.github.com/repos/square/flow/issues/54","labels_url":"https://api.github.com/repos/square/flow/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/square/flow/issues/54/comments","events_url":"https://api.github.com/repos/square/flow/issues/54/events","html_url":"https://github.com/square/flow/pull/54","id":55033803,"number":54,"title":"Fix mortar sample ClassCastException","user":{"login":"wuman","id":247559,"avatar_url":"https://avatars.githubusercontent.com/u/247559?v=3","gravatar_id":"","url":"https://api.github.com/users/wuman","html_url":"https://github.com/wuman","followers_url":"https://api.github.com/users/wuman/followers","following_url":"https://api.github.com/users/wuman/following{/other_user}","gists_url":"https://api.github.com/users/wuman/gists{/gist_id}","starred_url":"https://api.github.com/users/wuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuman/subscriptions","organizations_url":"https://api.github.com/users/wuman/orgs","repos_url":"https://api.github.com/users/wuman/repos","events_url":"https://api.github.com/users/wuman/events{/privacy}","received_events_url":"https://api.github.com/users/wuman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-21T15:32:30Z","updated_at":"2015-04-01T16:17:43Z","closed_at":"2015-04-01T16:17:37Z","pull_request":{"url":"https://api.github.com/repos/square/flow/pulls/54","html_url":"https://github.com/square/flow/pull/54","diff_url":"https://github.com/square/flow/pull/54.diff","patch_url":"https://github.com/square/flow/pull/54.patch"},"body":"The `newView` in flow-sample need not be a `ViewGroup`.  It actually causes the mortar sample to throw a ClassCastException like the following:\r\n\r\n```\r\n        AndroidRuntime  E  FATAL EXCEPTION: main\r\n                        E  Process: com.example.mortar, PID: 2354\r\n                        E  java.lang.ClassCastException: com.example.mortar.view.FriendView cannot be cast to android.view.ViewGroup\r\n                        E      at com.example.flow.pathview.SimplePathContainer.performTraversal(SimplePathContainer.java:64)\r\n                        E      at flow.PathContainer.executeTraversal(PathContainer.java:87)\r\n                        E      at com.example.flow.pathview.FramePathContainerView.dispatch(FramePathContainerView.java:64)\r\n                        E      at com.example.mortar.MortarDemoActivity.dispatch(MortarDemoActivity.java:85)\r\n                        E      at flow.Flow$PendingTraversal.go(Flow.java:356)\r\n                        E      at flow.Flow$2.doExecute(Flow.java:143)\r\n                        E      at flow.Flow$PendingTraversal.execute(Flow.java:364)\r\n                        E      at flow.Flow.move(Flow.java:273)\r\n                        E      at flow.Flow.goTo(Flow.java:140)\r\n                        E      at com.example.mortar.screen.FriendListScreen$Presenter.onFriendSelected(FriendListScreen.java:60)\r\n                        E      at com.example.mortar.view.FriendListView$1.onItemClick(FriendListView.java:55)\r\n                        E      at android.widget.AdapterView.performItemClick(AdapterView.java:299)\r\n                        E      at android.widget.AbsListView.performItemClick(AbsListView.java:1113)\r\n                        E      at android.widget.AbsListView$PerformClick.run(AbsListView.java:2911)\r\n                        E      at android.widget.AbsListView$3.run(AbsListView.java:3645)\r\n                        E      at android.os.Handler.handleCallback(Handler.java:733)\r\n                        E      at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                        E      at android.os.Looper.loop(Looper.java:136)\r\n                        E      at android.app.ActivityThread.main(ActivityThread.java:5001)\r\n                        E      at java.lang.reflect.Method.invokeNative(Native Method)\r\n                        E      at java.lang.reflect.Method.invoke(Method.java:515)\r\n                        E      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n                        E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n                        E      at dalvik.system.NativeStart.main(Native Method)\r\n```"},"comment":{"url":"https://api.github.com/repos/square/flow/issues/comments/88540075","html_url":"https://github.com/square/flow/pull/54#issuecomment-88540075","issue_url":"https://api.github.com/repos/square/flow/issues/54","id":88540075,"user":{"login":"loganj","id":18877,"avatar_url":"https://avatars.githubusercontent.com/u/18877?v=3","gravatar_id":"","url":"https://api.github.com/users/loganj","html_url":"https://github.com/loganj","followers_url":"https://api.github.com/users/loganj/followers","following_url":"https://api.github.com/users/loganj/following{/other_user}","gists_url":"https://api.github.com/users/loganj/gists{/gist_id}","starred_url":"https://api.github.com/users/loganj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganj/subscriptions","organizations_url":"https://api.github.com/users/loganj/orgs","repos_url":"https://api.github.com/users/loganj/repos","events_url":"https://api.github.com/users/loganj/events{/privacy}","received_events_url":"https://api.github.com/users/loganj/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T16:17:43Z","updated_at":"2015-04-01T16:17:43Z","body":"Thanks!"}}