804 Commits

Author SHA1 Message Date
Peter Serwylo
34a2534cc8 List was repopulating every page view, because category spinner was firing change event. 2013-04-14 08:37:02 +10:00
Peter Serwylo
04f899d72f Refactored API dependent implementations into classes.
See http://stackoverflow.com/a/6495399.

I thought that I could just wrap
API dependent code in an if statement, ant it would only have a problem
if it tried to execute a particular function at runtime. However when
testing on a 1.6 emulator, I was getting "VerifyErrors" which as the
link above suggest, are because it is verifying every statement in a
class. Refactoring out to another class solves this because it only
verifies classes which are loaded at runtime.
2013-04-14 08:12:34 +10:00
Peter Serwylo
f4abb6389c Fixed bug I introduced depending on later API.
Also added utility method to make checking a bit easier,
and removed reference to SDK from DB (it mentioned in the
comments that SDK_INT was only available in v5, but the
Android docs say it was introduced in v4. Because FDroid
now depends on the Android support library, which in turn
depends on v4, it sould be okay to depen on this.
2013-04-14 07:05:20 +10:00
Andrew Gaul
716b1c802b Prefer unsynchronized ArrayList over Vector 2013-04-12 23:13:17 -07:00
Ciaran Gultnieks
8dd337f345 Need to drop stored etags when resetting 2013-04-12 22:02:42 +01:00
Ciaran Gultnieks
0cb5d25b0c Change license from GPLv2+ to GPLv3+ 2013-04-12 14:45:48 +01:00
Ciaran Gultnieks
addf0bcb36 Merge commit 'refs/merge-requests/23' of git://gitorious.org/f-droid/fdroidclient into merge-requests/23 2013-04-12 14:35:32 +01:00
Ciaran Gultnieks
3011c08bb2 Merge commit 'refs/merge-requests/22' of git://gitorious.org/f-droid/fdroidclient into merge-requests/22 2013-04-12 14:34:28 +01:00
Ciaran Gultnieks
f500aad71e Merge commit 'refs/merge-requests/20' of git://gitorious.org/f-droid/fdroidclient into merge-requests/20 2013-04-12 14:30:39 +01:00
Andrew Gaul
152d0963db Do not display fractional bytes
Also do not allocate String array on every invocation.
2013-04-11 19:26:03 -07:00
Peter Serwylo
e8263e742d Fixed issue with initial update. 2013-04-12 12:03:46 +10:00
Peter Serwylo
32d89db8c6 Merge branch 'master' into issue-135-tab-swiping
Conflicts:
	src/org/fdroid/fdroid/FDroid.java
2013-04-12 09:24:56 +10:00
Peter Serwylo
c354280a62 Fragments now have a proper lifecycle. 2013-04-12 08:07:20 +10:00
Peter Serwylo
69cd579eda Make menu update after install. 2013-04-11 19:30:53 +10:00
Andrew Gaul
2e665e2771 Improve stream handling
Close streams on error paths, ensure flush, and use consistent buffer
size.  Also add and use stream utilities.
2013-04-10 22:10:31 -07:00
Peter Serwylo
ff4ba92376 WIP: Refactoring fragments to handle click events themselves. 2013-04-11 11:03:44 +10:00
Peter Serwylo
4eda47df4b Made fragments work properly.
As this was my first experience with fragments, I didn't respect
their lifecycle properly. I think this has solved the issue I was
having, where recreating the app list fragments after it was destroid
by Android caused them to stuff up.
2013-04-10 19:56:17 +10:00
Peter Serwylo
d2c8f0de68 Replace CompatibilityUtils with android.support.v4.MenuItemCompat 2013-04-10 13:04:49 +10:00
Peter Serwylo
89facb24c6 Finished implementation of swipe to change tabs. 2013-04-10 12:57:35 +10:00
Peter Serwylo
fdf69cabcc WIP: Adding tab swiping, which is a bit more work than I thought. 2013-04-10 10:17:55 +10:00
Peter Serwylo
8679a1241f Also show "add repo" and "update/install" in action bar.
The "update" icon was a "+" (add icon) which looked a bit weird, so a
quick search of other UI's shows that the "refresh" icon is used for
"update". The official Android reference docs say to copy icons that
aren't part of the android.R.drawable.* constants into your own
drawable-* folders, so I've done that here. The icons are from android
SDK version 17.
2013-04-09 18:55:10 +10:00
Peter Serwylo
7a83557772 Show search/run MenuItems in action bar.
This is only done if the device api version is >= 11, and if there is
room in the action bar. I added the funcitonality in a new class
CompatabilityUtils because there may be other things for which this is
desirable.
2013-04-09 11:22:46 +10:00
Ciaran Gultnieks
d02dd290ca Merge commit 'refs/merge-requests/17' of git://gitorious.org/f-droid/fdroidclient into merge-requests/17 2013-03-25 08:22:57 +00:00
Ciaran Gultnieks
1c869ee00c Merge commit 'refs/merge-requests/16' of git://gitorious.org/f-droid/fdroidclient into merge-requests/16 2013-03-25 08:00:16 +00:00
Paul Sokolovsky
eb6ffcbc9b Log total time spent/bytes fetched from network while d/ling repo index. 2013-03-24 21:31:04 +02:00
Ciaran Gultnieks
55400a906d Remove typo (spot the vim user) 2013-03-23 13:35:55 +00:00
Ciaran Gultnieks
04e2966067 Don't crash on faulty search results translations (issue #184) 2013-03-23 10:18:06 +00:00
Paul Sokolovsky
b71fcab896 Allow user to edit number of update history days in prefs.
Instead of using hardcoded 14 days.
2013-03-17 00:37:37 +02:00
Paul Sokolovsky
57d3ccc124 On package details page, add menu option to run installed application.
Standard Android "Launch" terminology used in source code, but menu
item is called "Run" for brevity.
2013-01-28 02:27:42 +02:00
Ciaran Gultnieks
39a3640c20 Merge commit 'refs/merge-requests/14' of git://gitorious.org/f-droid/fdroidclient into merge-requests/14 2013-01-04 10:33:35 +00:00
Ciaran Gultnieks
5640225247 Merge commit 'refs/merge-requests/13' of git://gitorious.org/f-droid/fdroidclient into merge-requests/13 2013-01-04 10:32:52 +00:00
Andrew Gaul
8702367e13 Correct typo 2012-12-11 19:10:52 -08:00
Andrew Gaul
9b35942c17 Buffer all InputStreams and Readers
Also prefer generic Reader over InputStreamReader.
2012-12-11 18:29:24 -08:00
Felix Ableitner
bdf165d80c Fixed various warnings. 2012-10-27 13:05:17 +02:00
Ciaran Gultnieks
c2cd6a9c66 Avoid SQLite statement cache full warning 2012-10-24 15:02:17 +01:00
Ciaran Gultnieks
c4e31a5fb1 No need to keep a PackageManager 2012-10-19 08:43:26 +01:00
Ciaran Gultnieks
2c31350488 Use code, not name, for flagging installed version in apk list 2012-10-19 08:41:54 +01:00
Ciaran Gultnieks
d07db77103 Ensure apk list gets redrawn when necessary 2012-10-19 08:41:08 +01:00
Ciaran Gultnieks
5ab0acf4c0 Log when dropping cached app data 2012-10-19 08:40:41 +01:00
Ciaran Gultnieks
a456a9b8d9 Fix package change broadcast receiving 2012-10-19 08:39:56 +01:00
Ciaran Gultnieks
1a9f86dc9d Add broadcast receiver for package installation/removal 2012-10-05 18:11:36 +01:00
Ciaran Gultnieks
b98f59fb94 Include summary in search (issue #108) 2012-10-05 08:13:49 +01:00
Michele Azzolari
5a5a632778 Showing last repo scan at bottom of repo list 2012-09-28 11:01:25 +02:00
Ciaran Gultnieks
8993391b56 Save last update check time 2012-09-28 08:52:28 +01:00
Ciaran Gultnieks
c8aeb08dfa Better internal handling of repos 2012-09-26 21:31:03 +01:00
Ciaran Gultnieks
8415cc2e0a Fix recently introduced automatic repo scan bug 2012-09-25 22:20:30 +01:00
Ciaran Gultnieks
222001f14d Revert "Experimental nook fix" (experiment failed)
This reverts commit 4edd127175411f84b1c94ee3b1b6f7b1bfb1a1e1.
2012-09-22 22:33:31 +01:00
Ciaran Gultnieks
407c903010 Use etags - highly experimental, especially where multiple repos are concerned 2012-09-22 22:33:06 +01:00
Ciaran Gultnieks
4edd127175 Experimental nook fix 2012-09-20 20:40:40 +01:00
Ciaran Gultnieks
5329e4431a Fix incorrect incompatible greying due to view reuse 2012-09-19 21:37:22 +01:00