mGerrit: Fix project card not properly being removed

Previously swiping away a selected project would only
affect your current tab. Changing tabs would reselect
the project, a very frustrating "feature".

Now swiping away a selected project has the expected
result of not showing the project as selected while
navigating throughout the app.

Thanks Evan Conway from the Google PlayStore for pointing
this out!

Change-Id: I5bfec6ba3be86dee87c4a13fdead4e300b897472
mGerrit: Lower min API version to v11 (ICS)

By providing a values res folder with a modified styles.xml
(removing fontFamily tags) we can now support ICS+ devices

Change-Id: I5375b94d22ec95d9fa801d1df6bfd2649e3b4f83
mGerrit: Fix GerritTask not showing transfer progress on some devices

UrlConnection transparently sends "Accept-Encoding":"gzip" by default.
Because the underlying mechanisim has no way of knowing the unzipped
size of the stream it appeared to download more bytes than was returned
by UrlConnection#getContentLength().  On other devices UrlConnection
stripped the value from "Content-Length" header as its inaccurate
while the stream is gzip'd returning -1 and causing the ProgressDialog
to show a generic message instead of showing the bytes as they are
downloaded.

Moved calculations off the main thread to show bt progress updates
quicker... Its still not as fast as possible but much better.

Thanks @razorloves for pointing this error out and spearheading
efforts to resolve the issue.  Razor did all the work here by
finding the docs to support his theory and providing sample
code to fix the issue. Thank you for such on point helping!

Change-Id: Ida506e46a40af2b87eaaf2ba4c01f15a7df380bf
(cherry picked from commit 7bc8fa1a268a997f2ded6bb6a8ae38fbfb3e394d)
mGerrit: Bump version release for market

This version is mostly bug fixes with a few optimiations where
network communications are handled.

Change-Id: Ib5e74d0ecbbd20b503afe53f9d1259bacb737a92
Added gradle build files; target API 18

Switch to gradle build system
Target Android 4.3 (API 18)

Change-Id: I44bce44502d586ab269e33595b1fad6dbe7159c9
Switch to flat holo light icons

Change-Id: I4b8d7f892742b0c5553aab4f8a3af6a9d6890d0b
Implement Up navigation

Implement Up Affordance (Up Navigation) on all the child activities
Add support library

Change-Id: I99fa2daa815cda331d020f200dab2d7226fe6863
Merge "Switch to flat holo light icons"
Fix non-translatable strings

Patch Set 2: Remove Koush's UrlImageViewHelper references
Patch Set 3: Actually remove Koush's UrlImageViewHelper
Change-Id: Ia57391d371a7a45ff4d7ca672ba9161565debb30
Some more icon changes

Changed gerrit source to use an icon from the Android icon pack
Added share icon from Android icon pack.

Change-Id: If0f40ffe2233b56e0d2070e5c7f17b30281a0de7
Add .gitreview

Add the gitreview configuration file for this project to enable
 Gerrit contributions to this project with gitreview instead of
 repo.

Change-Id: I32ae92f73fe979d7aad6f08e823ea2cfab757c88
Merge "Some more icon changes"
Inital ViewPager Support

Support for tab-swiping using a ViewPager
Transitioned tabs from Activities to Fragments (from the support library)
Removed intent passing to tabs as they are now fragments
MyTabListener: ViewPager tab listener class
CardsFragment: Refactoring and restructuring
Some other general code cleanup and improvements, including try-catch
 optimisations.
Moved the commit countdown to start closer to when the request is made.

This merges in the entirity of the merge commit "Merge change timer start with fixes for refreshing when gerrit changes".
This includes both branches for the ViewPager implementation.
Drawable changes have been separated from this change.

Patch Set 2: Fix build

Change-Id: I29ea3e95fc619c3c02e40a7898d271df52eb14f3
Use PreferenceFragment for preferences

Much of the functionality of PreferenceActivity has been moved into PreferenceFragment and depricated in PreferenceActivity since API 11 (ICS).
This fixes those deprication warnings.

Patch Set 2: Remove windows line endings

Patch Set 3: Call PrefsActivity to start the Preferences. Let PrefsActivity load the fragment

Change-Id: I26db6ee323acc189306807dcd16a621ea85a33e1
Layout tweaks, optimisations and font changes

Use Roboto thin font on API 16+ (Android 4.1) devices (Why not?)
Changed some LinearLayouts to RelativeLayout and removed some superflous layout
 nesting. I have tried to keep the original structure here and just refactor
 some layouts.
Fix some warnings about using the fontFamily attribute on pre-API 16 devices by
 including new values/styles.xml file.
Some font size changes - making some things slightly bigger and easy to read.

These layout and UI changes are open to review and may change.
 Hopefully by flattening some nested layouts there will be a performance
 improvement, although proper performance testing has not been done (and the
 impact is expected to be negligable in comparison to better data caching).

Change-Id: Ie6b8f063e9c941197e10684d1f4d79fa18efe28b
GerritURL implemented; ViewPager now refreshes tabs on reloading.

The ViewPager still is caching tabs, and not redrawing the ones that are already
 loaded. However, it cannot have all the tabs loaded at once so with enough tab
 switching they will be up to date. There is (still) problems with tabs showing
 the wrong data (projects not being set/unset, wrong status such as merged instead
 of abandoned etc.). We want to force a redraw of the fragment's layout on
 refresh instead of tearing it down and recreating it.

With the GerritURL class, we can set individual components of the query url.
 This is especially when components change.

Use a FragmentStatePagerAdapter for the ViewPager and manage the tabs inside
 this class. This manages the tab titles and resets (recreates) one when the
 title changes.

Set the project globally from the preferences and add a listener for project changes.
CardsUI (library): Refresh invalidates the parent layout
GerritURL: Better string construction
TrackingClickListener: Remove intents to startActivity due to use of fragments.
MyTabListener: Import re-ordering

Patch Set 2: Remove Windows line endings & add add liscense to GerritURL

Change-Id: Id34a59f39b91a4afadfd2c80d1bb1bd8a01216fd
Add change comment support for Cyanogenmod Gerrit

Change-Id: Ie5c160efd29eacffdc0f6c6468bfb40f14819140
Merge "Layout tweaks, optimisations and font changes"
Fix getting selected tab

ViewPager monitors the current tab position so use that instead of
 trying to monitor the current selected tab in the ViewPager's adapter.
This appears to fix issues with the current tab not refreshing (there
 are still other refresh issues).

Patch Set 4: Expose SectionsPagerAdapter to fix build

Change-Id: I556ba06dd3d24412b151bf6715dba4581ba01b4b
Disable caching (fixes tab refreshing)

Disable caching cards till a better caching
 mechanism can be found. The old method of caching
 meant that old data (or data from other tabs) was
 being restored. See comment in CardsFragment
 regarding caching.

Patch Set 2: Remove extra getAdapter() method I added
 oops.

Change-Id: I387596e88f9eb8ee3e77d4f59b5ac2219932a242