{"action":"created","issue":{"url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/96","labels_url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/96/comments","events_url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/96/events","html_url":"https://github.com/avast/android-styled-dialogs/pull/96","id":55986392,"number":96,"title":"enhance code format; fix #95","user":{"login":"liaohuqiu","id":4088573,"avatar_url":"https://avatars.githubusercontent.com/u/4088573?v=3","gravatar_id":"","url":"https://api.github.com/users/liaohuqiu","html_url":"https://github.com/liaohuqiu","followers_url":"https://api.github.com/users/liaohuqiu/followers","following_url":"https://api.github.com/users/liaohuqiu/following{/other_user}","gists_url":"https://api.github.com/users/liaohuqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/liaohuqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liaohuqiu/subscriptions","organizations_url":"https://api.github.com/users/liaohuqiu/orgs","repos_url":"https://api.github.com/users/liaohuqiu/repos","events_url":"https://api.github.com/users/liaohuqiu/events{/privacy}","received_events_url":"https://api.github.com/users/liaohuqiu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T02:17:44Z","updated_at":"2015-01-30T09:52:20Z","closed_at":"2015-01-30T08:48:43Z","pull_request":{"url":"https://api.github.com/repos/avast/android-styled-dialogs/pulls/96","html_url":"https://github.com/avast/android-styled-dialogs/pull/96","diff_url":"https://github.com/avast/android-styled-dialogs/pull/96.diff","patch_url":"https://github.com/avast/android-styled-dialogs/pull/96.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/comments/72177683","html_url":"https://github.com/avast/android-styled-dialogs/pull/96#issuecomment-72177683","issue_url":"https://api.github.com/repos/avast/android-styled-dialogs/issues/96","id":72177683,"user":{"login":"tomik-dev","id":1689716,"avatar_url":"https://avatars.githubusercontent.com/u/1689716?v=3","gravatar_id":"","url":"https://api.github.com/users/tomik-dev","html_url":"https://github.com/tomik-dev","followers_url":"https://api.github.com/users/tomik-dev/followers","following_url":"https://api.github.com/users/tomik-dev/following{/other_user}","gists_url":"https://api.github.com/users/tomik-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/tomik-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomik-dev/subscriptions","organizations_url":"https://api.github.com/users/tomik-dev/orgs","repos_url":"https://api.github.com/users/tomik-dev/repos","events_url":"https://api.github.com/users/tomik-dev/events{/privacy}","received_events_url":"https://api.github.com/users/tomik-dev/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T09:52:20Z","updated_at":"2015-01-30T09:52:20Z","body":"View listeners are different. Your general listener is strongly referenced in the `DialogFragment` when you pass an inner class of an `Activity` you risk leaking the activity when you rotate the device.\r\nTo solve your problem can have a common ancestor of your activities or if that's really not the case you can always fork styled dialogs and do it your way (I guess there might already be some forks like that).\r\n\r\n"}}