{"action":"created","issue":{"url":"https://api.github.com/repos/ACRA/acra/issues/341","labels_url":"https://api.github.com/repos/ACRA/acra/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/ACRA/acra/issues/341/comments","events_url":"https://api.github.com/repos/ACRA/acra/issues/341/events","html_url":"https://github.com/ACRA/acra/pull/341","id":123113321,"number":341,"title":"Make Dialog easier to extend","user":{"login":"F43nd1r","id":10252708,"avatar_url":"https://avatars.githubusercontent.com/u/10252708?v=3","gravatar_id":"","url":"https://api.github.com/users/F43nd1r","html_url":"https://github.com/F43nd1r","followers_url":"https://api.github.com/users/F43nd1r/followers","following_url":"https://api.github.com/users/F43nd1r/following{/other_user}","gists_url":"https://api.github.com/users/F43nd1r/gists{/gist_id}","starred_url":"https://api.github.com/users/F43nd1r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F43nd1r/subscriptions","organizations_url":"https://api.github.com/users/F43nd1r/orgs","repos_url":"https://api.github.com/users/F43nd1r/repos","events_url":"https://api.github.com/users/F43nd1r/events{/privacy}","received_events_url":"https://api.github.com/users/F43nd1r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-19T21:58:43Z","updated_at":"2016-01-03T22:33:13Z","closed_at":"2016-01-03T22:32:55Z","pull_request":{"url":"https://api.github.com/repos/ACRA/acra/pulls/341","html_url":"https://github.com/ACRA/acra/pull/341","diff_url":"https://github.com/ACRA/acra/pull/341.diff","patch_url":"https://github.com/ACRA/acra/pull/341.patch"},"body":"I liked the default dialog, but I wanted to apply minimal changes to it. That is currently very hard. In my implementation (note: no logic changed) I have several Methods which can be overridden to modify just parts of the dialog:\r\n- addViewToDialog can be used to add view to the start (call before buildCutomView) or end of the dialog (call after buildCustomView)\r\n- getMainView, getCommentPrompt and getEmailPrompt allow to modify or replace specific parts of the dialog\r\n- buildAndShowDialog can be used to e.g. prevent the creation of the dialog in certain situations\r\n- getDialog for more modifications to the dialog (e.g third button)\r\n\r\nThese allow more modifications than I would need, but I thought it will help in the future if it is more flexible."},"comment":{"url":"https://api.github.com/repos/ACRA/acra/issues/comments/168548513","html_url":"https://github.com/ACRA/acra/pull/341#issuecomment-168548513","issue_url":"https://api.github.com/repos/ACRA/acra/issues/341","id":168548513,"user":{"login":"william-ferguson-au","id":670599,"avatar_url":"https://avatars.githubusercontent.com/u/670599?v=3","gravatar_id":"","url":"https://api.github.com/users/william-ferguson-au","html_url":"https://github.com/william-ferguson-au","followers_url":"https://api.github.com/users/william-ferguson-au/followers","following_url":"https://api.github.com/users/william-ferguson-au/following{/other_user}","gists_url":"https://api.github.com/users/william-ferguson-au/gists{/gist_id}","starred_url":"https://api.github.com/users/william-ferguson-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/william-ferguson-au/subscriptions","organizations_url":"https://api.github.com/users/william-ferguson-au/orgs","repos_url":"https://api.github.com/users/william-ferguson-au/repos","events_url":"https://api.github.com/users/william-ferguson-au/events{/privacy}","received_events_url":"https://api.github.com/users/william-ferguson-au/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T22:33:13Z","updated_at":"2016-01-03T22:33:13Z","body":"Thanks @F43nd1r excellent addition."}}