r3pwn/MirrorEnabler — pull request #2 by firekesti (2014-09-24 22:42:37+00:00)
Title: Clean things up a little

Hey, thanks for putting your source up for this app :) I wanted to see where the little bit of lag was coming from when pressing a button, looks like it's just doing all the DataOutputStream writing on the UI thread. I messed around with making a new AsyncTask that wrote the stuff in the background then created the Toast in onPostExecute, but I didn't want to mess up the logic at all and I'm not sure how you've been testing this!

The changes I made are mostly formatting, just aligning the tabs/spaces and making it easier to read.
I also added constants for ENABLED and DISABLED to get rid of the magic integers 1 and 0, and simplified some of the if logic (so now instead of ``if (thing == true)`` and later ``if (thing == false)`` it's just ``if (thing)`` and then ``else``.
I also cleaned up the README a little bit, added a direct link to the Twitter, and added code formatting.