{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/simplenote-android/issues/421","repository_url":"https://api.github.com/repos/Automattic/simplenote-android","labels_url":"https://api.github.com/repos/Automattic/simplenote-android/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/simplenote-android/issues/421/comments","events_url":"https://api.github.com/repos/Automattic/simplenote-android/issues/421/events","html_url":"https://github.com/Automattic/simplenote-android/issues/421","id":202690282,"number":421,"title":"Navigation Drawer Shows Incorrect Selection on Nougat","user":{"login":"theck13","id":3827611,"avatar_url":"https://avatars.githubusercontent.com/u/3827611?v=3","gravatar_id":"","url":"https://api.github.com/users/theck13","html_url":"https://github.com/theck13","followers_url":"https://api.github.com/users/theck13/followers","following_url":"https://api.github.com/users/theck13/following{/other_user}","gists_url":"https://api.github.com/users/theck13/gists{/gist_id}","starred_url":"https://api.github.com/users/theck13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theck13/subscriptions","organizations_url":"https://api.github.com/users/theck13/orgs","repos_url":"https://api.github.com/users/theck13/repos","events_url":"https://api.github.com/users/theck13/events{/privacy}","received_events_url":"https://api.github.com/users/theck13/received_events","type":"User","site_admin":false},"labels":[{"id":14892227,"url":"https://api.github.com/repos/Automattic/simplenote-android/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-24T00:21:05Z","updated_at":"2017-02-06T15:34:58Z","closed_at":null,"body":"### Expected\r\nThe navigation drawer shows a light blue background with blue icon and text for the selected item for all API levels.\r\n\r\n### Observed\r\nThe navigation drawer can have different highlighted and selected items for Nougat.  See the screenshots below for example.\r\n\r\n![drawer](https://cloud.githubusercontent.com/assets/3827611/22226627/70dbb71c-e184-11e6-8dd2-5bdd6e410cee.png)\r\n\r\nIn the All Notes (Trash) screenshot, the All Notes item is selected while the Trash item's icon and text remains highlighted.  In the Trash (All Notes) screenshot, the Trash item is selected while the All Notes item's icon and text remains highlighted.\r\n\r\n### Reproduced\r\n1. Open navigation drawer.\r\n2. Tap ***All Notes*** item.\r\n3. Tap any note from ***All Notes*** list.\r\n4. Tap back arrow in action bar.\r\n5. Open navigation drawer.\r\n6. Notice ***All Notes*** is highlighted and selected.\r\n7. Tap ***Trash*** item.\r\n8. Open navigation drawer.\r\n9. Notice ***All Notes*** is highlighted and ***Trash*** is selected.\r\n10. Close navigation drawer.\r\n11. Tap any note from ***Trash*** list.\r\n12. Tap back arrow in action bar.\r\n13. Open navigation drawer.\r\n14. Notice ***Trash*** is highlighted and selected.\r\n15. Tap ***All Notes*** item.\r\n16. Open navigation drawer.\r\n17. Notice ***All Notes*** is selected and ***Trash*** is highlighted.\r\n\r\n#### Tested\r\nGoogle Pixel on Android 7.1.1 with Simplenote 1.5.5"},"comment":{"url":"https://api.github.com/repos/Automattic/simplenote-android/issues/comments/277718469","html_url":"https://github.com/Automattic/simplenote-android/issues/421#issuecomment-277718469","issue_url":"https://api.github.com/repos/Automattic/simplenote-android/issues/421","id":277718469,"user":{"login":"GeekerAndyLove","id":11572186,"avatar_url":"https://avatars.githubusercontent.com/u/11572186?v=3","gravatar_id":"","url":"https://api.github.com/users/GeekerAndyLove","html_url":"https://github.com/GeekerAndyLove","followers_url":"https://api.github.com/users/GeekerAndyLove/followers","following_url":"https://api.github.com/users/GeekerAndyLove/following{/other_user}","gists_url":"https://api.github.com/users/GeekerAndyLove/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekerAndyLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekerAndyLove/subscriptions","organizations_url":"https://api.github.com/users/GeekerAndyLove/orgs","repos_url":"https://api.github.com/users/GeekerAndyLove/repos","events_url":"https://api.github.com/users/GeekerAndyLove/events{/privacy}","received_events_url":"https://api.github.com/users/GeekerAndyLove/received_events","type":"User","site_admin":false},"created_at":"2017-02-06T15:34:58Z","updated_at":"2017-02-06T15:34:58Z","body":"@theck13 Same problem on Android 7.1. I found that the color will change after step \"**12. Tap back arrow in action bar.**\" in your Reproduced. And the color will change immediately after **Trash** being selected in Marshmallow. I found this from [here](https://developer.android.com/about/versions/nougat/android-7.0-changes.html)\r\n> If an app posts Runnable tasks to a View, and the View is not attached to a window, the system queues the Runnable task with the View; the Runnable task does not execute until the View is attached to a window. This behavior fixes the following bugs:\r\nIf an app posted to a View from a thread other than the intended window’s UI thread, the Runnable may run on the wrong thread as a result.\r\nIf the Runnable task was posted from a thread other than a looper thread, the app could expose the Runnable task. \r\n\r\nI wonder if the change causes this bug?"}}
{"actor":{"display_login":"GeekerAndyLove"}}