7038 Commits

Author SHA1 Message Date
David Black
1c01024733 Merge branch 'master' of git://gitorious.org/f-droid/fdroidclient 2013-04-16 22:00:57 +01:00
Ciaran Gultnieks
01114da06d Tabs begone 2013-04-16 20:35:14 +01:00
David Black
2fb2b1bf03 Merge branch 'master' of git://gitorious.org/f-droid/fdroidclient 2013-04-16 20:34:07 +01:00
Ciaran Gultnieks
49706c12d1 No need to re-check compatibility if ALL repos were unchanged (by etag) 2013-04-16 20:31:51 +01:00
Ciaran Gultnieks
78f6027176 Include time of update in logs 2013-04-16 20:29:20 +01:00
David Black
299596ae58 Merge branch 'master' of git://gitorious.org/f-droid/fdroidclient 2013-04-16 13:35:18 +01:00
Ciaran Gultnieks
5ed815a348 Clean up of imports after merges 2013-04-16 09:59:24 +01:00
Ciaran Gultnieks
bbd9223ced Merge commit 'refs/merge-requests/27' of git://gitorious.org/f-droid/fdroidclient into merge-requests/27
Conflicts:
	src/org/fdroid/fdroid/RepoXMLHandler.java
	src/org/fdroid/fdroid/UpdateService.java
	src/org/fdroid/fdroid/Utils.java
2013-04-16 09:48:10 +01:00
Ciaran Gultnieks
010989f05b Merge commit 'refs/merge-requests/26' of git://gitorious.org/f-droid/fdroidclient into merge-requests/26 2013-04-16 09:44:14 +01:00
Ciaran Gultnieks
0680899a94 Merge commit 'refs/merge-requests/25' of git://gitorious.org/f-droid/fdroidclient into merge-requests/25
Conflicts:
	src/org/fdroid/fdroid/FDroid.java
2013-04-16 09:43:18 +01:00
Ciaran Gultnieks
8401d53dc0 Merge commit 'refs/merge-requests/24' of git://gitorious.org/f-droid/fdroidclient into merge-requests/24
Conflicts:
	src/org/fdroid/fdroid/DB.java
2013-04-16 09:39:10 +01:00
Peter Serwylo
841ec9d289 Make progress more multi-repo aware.
Changed strings.xml to reflect the multi-repo nature of updating.

Also refactored progress events to make them more generic and
easier to nest deeply down the call stack. The ProgressListener
now just expects a ProgressListener.Event, which in addition to
statically typed type and progress info, also has an associated
Bundle which can store arbitrary data.
2013-04-16 12:45:51 +10:00
Peter Serwylo
4bcf4bf60d Progress information during repo update.
Polls the download server before download to see how big the file is so
that we can figur eout our progress during download. Its a bit of a hit
(about 1.5 seconds on my connection), but I think most people would be
willing to take a small hit to get accurate percentage measurements.

I also spend a small amount of time (~1.5 seconds) asking how big the
file is before we download it, so that we can give an accurate
progress measurement. The same can be said for peeking into the
XML file before we pass it to the SAX parser, by just iterating
over every line looking for "<application" and counting that. It
is not perfect, and it takes about 3 seconds for 600 apps on my
crappy emulator, but the progress makes much more sense.

Refactored helper loops as per Andrew's suggestions.

Close file reader correctly.
2013-04-16 11:59:44 +10:00
Ciaran Gultnieks
68edafc48d Behave a bit better when a repo is deleted 2013-04-15 11:13:27 +01:00
Ciaran Gultnieks
d641ad8539 Default https when adding repo 2013-04-15 10:32:59 +01:00
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
David Black
f6f7085b73 Merge branch 'master' of git://gitorious.org/f-droid/fdroidclient 2013-04-12 15:11:33 +01:00
Ciaran Gultnieks
a2843aa7be Translation updates 2013-04-12 14:53:15 +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
Ciaran Gultnieks
33fea6e316 Merge commit 'refs/merge-requests/18' of git://gitorious.org/f-droid/fdroidclient into merge-requests/18 2013-04-12 14:29:32 +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
ca296ef5eb Added license and readme for android support library. 2013-04-12 09:50:40 +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
David Black
39929028e7 Merge branch 'master' of git://gitorious.org/f-droid/fdroidclient 2013-04-10 12:30:50 +01: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
David Black
cdac0e4632 re-render fdroid logo pngs 2013-03-28 13:14:51 +00: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
3908ed16db Can't support tzm - removed 2013-03-24 10:14:50 +00:00
Ciaran Gultnieks
f2109e4e0b Version 0.43 2013-03-24 08:56:55 +00:00
Ciaran Gultnieks
9643f69a82 Translation updates 2013-03-24 08:50:09 +00:00
Ciaran Gultnieks
36b815095e Version 0.42 2013-03-23 13:36:14 +00:00