{"action":"created","issue":{"url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/14","labels_url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/14/comments","events_url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/14/events","html_url":"https://github.com/thorbenprimke/realm-recyclerview/issues/14","id":125755259,"number":14,"title":"Enhancement: Option to override default dismiss callback","user":{"login":"migzisreallywewwhat","id":6831138,"avatar_url":"https://avatars.githubusercontent.com/u/6831138?v=3","gravatar_id":"","url":"https://api.github.com/users/migzisreallywewwhat","html_url":"https://github.com/migzisreallywewwhat","followers_url":"https://api.github.com/users/migzisreallywewwhat/followers","following_url":"https://api.github.com/users/migzisreallywewwhat/following{/other_user}","gists_url":"https://api.github.com/users/migzisreallywewwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/migzisreallywewwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migzisreallywewwhat/subscriptions","organizations_url":"https://api.github.com/users/migzisreallywewwhat/orgs","repos_url":"https://api.github.com/users/migzisreallywewwhat/repos","events_url":"https://api.github.com/users/migzisreallywewwhat/events{/privacy}","received_events_url":"https://api.github.com/users/migzisreallywewwhat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T12:06:43Z","updated_at":"2016-01-19T10:52:44Z","closed_at":"2016-01-19T10:52:44Z","body":"I find the default dismiss callback implementation insufficient for my needs. Is it possible if you can add an option to override the default dismiss callback. This way, we can delete the RealmObject ourselves and will allow us to show a snackbar to the user for a nice action feedback. Thank you."},"comment":{"url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/comments/172816339","html_url":"https://github.com/thorbenprimke/realm-recyclerview/issues/14#issuecomment-172816339","issue_url":"https://api.github.com/repos/thorbenprimke/realm-recyclerview/issues/14","id":172816339,"user":{"login":"migzisreallywewwhat","id":6831138,"avatar_url":"https://avatars.githubusercontent.com/u/6831138?v=3","gravatar_id":"","url":"https://api.github.com/users/migzisreallywewwhat","html_url":"https://github.com/migzisreallywewwhat","followers_url":"https://api.github.com/users/migzisreallywewwhat/followers","following_url":"https://api.github.com/users/migzisreallywewwhat/following{/other_user}","gists_url":"https://api.github.com/users/migzisreallywewwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/migzisreallywewwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migzisreallywewwhat/subscriptions","organizations_url":"https://api.github.com/users/migzisreallywewwhat/orgs","repos_url":"https://api.github.com/users/migzisreallywewwhat/repos","events_url":"https://api.github.com/users/migzisreallywewwhat/events{/privacy}","received_events_url":"https://api.github.com/users/migzisreallywewwhat/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T10:52:44Z","updated_at":"2016-01-19T10:52:44Z","body":"For anyone who wants to know my solution -> make sure rrvSwipeToDelete is to false and add this\r\n```\r\ntry {\r\n    Field recyclerViewField = RealmRecyclerView.class.getDeclaredField(\"recyclerView\");\r\n    recyclerViewField.setAccessible(true);\r\n    RecyclerView recyclerView = (RecyclerView) recyclerViewField.get(list);\r\n    new ItemTouchHelper(callback).attachToRecyclerView(recyclerView);\r\n    Log.i(TAG, \"Successfully attached TouchCallback to RealmRecyclerView\");\r\n} catch (Exception e) {\r\n    Log.e(TAG, \"Could not attach TouchCallback to recyclerView of RealmRecyclerView : \" + e.getMessage(), e);\r\n}\r\n```"}}