{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/23","repository_url":"https://api.github.com/repos/realm/realm-mobile-platform","labels_url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/23/comments","events_url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/23/events","html_url":"https://github.com/realm/realm-mobile-platform/issues/23","id":183815947,"number":23,"title":"the onsuccess is fire even when my task is not done.","user":{"login":"yamamz","id":21273477,"avatar_url":"https://avatars.githubusercontent.com/u/21273477?v=3","gravatar_id":"","url":"https://api.github.com/users/yamamz","html_url":"https://github.com/yamamz","followers_url":"https://api.github.com/users/yamamz/followers","following_url":"https://api.github.com/users/yamamz/following{/other_user}","gists_url":"https://api.github.com/users/yamamz/gists{/gist_id}","starred_url":"https://api.github.com/users/yamamz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamamz/subscriptions","organizations_url":"https://api.github.com/users/yamamz/orgs","repos_url":"https://api.github.com/users/yamamz/repos","events_url":"https://api.github.com/users/yamamz/events{/privacy}","received_events_url":"https://api.github.com/users/yamamz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-mobile-platform/labels/S:Waiting%20For%20User","name":"S:Waiting For User","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-mobile-platform/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-18T22:08:21Z","updated_at":"2016-10-19T14:21:57Z","closed_at":null,"body":"```java\r\npublic void onItemLongClick(View view, final int position) {\r\n\r\n\r\n              realm.executeTransactionAsync(new Realm.Transaction() {\r\n                  @Override\r\n                  public void execute(Realm bgRealm) {\r\n                      final RealmResults<Device> deviceQuery=bgRealm.where(Device.class).findAllSorted(\"ipAddress\", Sort.ASCENDING);\r\n\r\n                      deviceQuery.deleteFromRealm(position);\r\n                  }\r\n              }, new Realm.Transaction.OnSuccess(){\r\n                  @Override\r\n                  public void onSuccess () {\r\n\r\n                      adapter.notifyItemRemoved(position);\r\n                      Toast.makeText(MainActivity.this,\"successfully deleted\",Toast.LENGTH_LONG).show();\r\n                  }\r\n\r\n              });\r\n\r\n          }\r\n      }));\r\n```"},"comment":{"url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/comments/254827637","html_url":"https://github.com/realm/realm-mobile-platform/issues/23#issuecomment-254827637","issue_url":"https://api.github.com/repos/realm/realm-mobile-platform/issues/23","id":254827637,"user":{"login":"zaki50","id":406660,"avatar_url":"https://avatars.githubusercontent.com/u/406660?v=3","gravatar_id":"","url":"https://api.github.com/users/zaki50","html_url":"https://github.com/zaki50","followers_url":"https://api.github.com/users/zaki50/followers","following_url":"https://api.github.com/users/zaki50/following{/other_user}","gists_url":"https://api.github.com/users/zaki50/gists{/gist_id}","starred_url":"https://api.github.com/users/zaki50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaki50/subscriptions","organizations_url":"https://api.github.com/users/zaki50/orgs","repos_url":"https://api.github.com/users/zaki50/repos","events_url":"https://api.github.com/users/zaki50/events{/privacy}","received_events_url":"https://api.github.com/users/zaki50/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T14:21:57Z","updated_at":"2016-10-19T14:21:57Z","body":"@yamamz I think this issue is not related to RMP.\r\nCould you move this issue to https://github.com/realm/realm-java/issues ?"}}
{"actor":{"display_login":"zaki50"}}