{"action":"opened","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3687","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3687/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3687/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/3687/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/issues/3687","id":130252511,"number":3687,"title":"Comments list not retaining state on orientation change","user":{"login":"khaykov","id":728822,"avatar_url":"https://avatars.githubusercontent.com/u/728822?v=3","gravatar_id":"","url":"https://api.github.com/users/khaykov","html_url":"https://github.com/khaykov","followers_url":"https://api.github.com/users/khaykov/followers","following_url":"https://api.github.com/users/khaykov/following{/other_user}","gists_url":"https://api.github.com/users/khaykov/gists{/gist_id}","starred_url":"https://api.github.com/users/khaykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaykov/subscriptions","organizations_url":"https://api.github.com/users/khaykov/orgs","repos_url":"https://api.github.com/users/khaykov/repos","events_url":"https://api.github.com/users/khaykov/events{/privacy}","received_events_url":"https://api.github.com/users/khaykov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T04:25:10Z","updated_at":"2016-02-01T04:25:10Z","closed_at":null,"body":"Steps: \r\n1. Open Comments activity from MySites tab.\r\n2. Long press on any comment.\r\n3. ActionMode bar appears at top of the screen.\r\n4. Rotate device.\r\n5. Selected comments and ActionMode bar are gone.\r\n\r\nIssue with dialogs on this screen:\r\nWhen in ActionMode try to delete/approve/unapprove some comments, and while progress dialog is displayed, rotate your device - progress dialog will stick, and won't be dismissed, the only way out of this is to kill an app.\r\n\r\nWhen \"Trash comments\" confirmation dialog is visible rotate devices - the dialog will disappear (along with selected comments).\r\n\r\nI discovered those issues while working on CommentActivity as part of #3551 . Fix is included in upcoming PR (will be submitted after #3663 is merged)."}}