k9mail/k-9 — pull request #497 by theduffmaster (2014-09-15 01:23:10+00:00)
Title: Navigation Drawer in MessageList / 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, which happens only when there is more then one account, 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

Also sorry this is the third pull request, I had some problems with git before and I had to delete the last branch.