k9mail/k-9 — pull request #495 by theduffmaster (2014-09-14 00:33:31+00:00)
Title: Navigation drawer ui overhaul

I was using K9mail with another project of mine, and while I was doing that I managed to add a navigation drawer to K9mail, as well as a number of UI tweaks I thought you guys might enjoy (looks a lot cleaner now, less cluttered, in my opinion). Currently, I found three bugs in my implementation, when you long press one of the accounts, the "account" variable returns null in recreate data, making it so a dialog does not show. Additionally, clicking on a new email notification opens a blank message view. The reason this happens is because the BroadcastListener is broadcasted only when the message is received, and not when the notification is clicked. I don't know where the BroadcastListener is called so I don't know how to fix it. Lastly the third error is that when you click on one of the special accounts (unified inbox…), then it force closes as getStats returns null since context is not available. I had to use CommonWare's MergeAdapter library in order to make it work. The UI changes are purely xml, so do what those what you want.

Here's some screenshots: https://drive.google.com/folderview?id=0BzHuKxRVmL4Fc0NPdGRxbUdTelE&usp=sharing