804 Commits

Author SHA1 Message Date
Daniel Martí
82ec7fe45c Add bitcoin and flattr support 2013-05-25 12:26:12 +02:00
Andrew Gaul
50ffaa4ea9 Correct SQLite typo in DB.getRepo 2013-05-23 22:14:25 -07:00
Ciaran Gultnieks
4e855b8132 Fix database upgrade bug 2013-05-22 21:30:02 +01:00
Daniel Martí
0f16b71688 Use v4.app.NotificationCompat 2013-05-22 19:07:31 +02:00
Peter Serwylo
3b84f110ac Moved initialization of app list adapter to onCreate. 2013-05-12 08:55:02 +10:00
Daniel Martí
a17d09e0a2 First attempt at implementing the compact layout 2013-05-11 23:32:18 +02:00
Ciaran Gultnieks
2a89c45ef3 Merge commit 'refs/merge-requests/37' of git://gitorious.org/f-droid/fdroidclient into merge-requests/37 2013-05-10 10:09:49 +01:00
Ciaran Gultnieks
604a4c0a88 Merge commit 'refs/merge-requests/38' of git://gitorious.org/f-droid/fdroidclient into merge-requests/38 2013-05-10 10:06:57 +01:00
Ciaran Gultnieks
97a33d3972 Include archive repo by default in new installs (but off by default) 2013-05-09 22:24:13 +01:00
Daniel Martí
f5dc1ddc96 Alert before trying to downgrade 2013-05-09 11:42:20 +02:00
Daniel Martí
24c2b9731c toast lengths, no need to check vercode != 0 2013-05-07 22:12:27 +02:00
Daniel Martí
f4a7aa7ced Use vercodes, not version strings!
Different versions might have the same names, but different codes. That
doesn't happen often, but could happen.
2013-05-07 19:55:08 +02:00
Daniel Martí
21c56fe260 Make notifications translatable, add updates count 2013-05-07 19:36:46 +02:00
Daniel Martí
0f28843163 Add "Added on " to the date on details. 2013-05-07 18:32:13 +02:00
Ciaran Gultnieks
445d6ca667 Merge commit 'refs/merge-requests/36' of git://gitorious.org/f-droid/fdroidclient into merge-requests/36
Conflicts:
	src/org/fdroid/fdroid/AppDetails.java
2013-05-07 09:42:47 +01:00
Daniel Martí
387b372606 Removed some unnecessary calls (I think they are) 2013-05-05 11:52:40 +02:00
Daniel Martí
b77c6380b3 Small fixes suggested by pserwylo 2013-05-05 11:44:19 +02:00
Daniel Martí
6556745618 Move string to its place. Add issue reference. 2013-05-05 11:38:19 +02:00
Daniel Martí
18de950fae Don't show LAUNCH if not available. Fix crashes. 2013-05-04 13:14:30 +02:00
Daniel Martí
071a1c28de Fix the no_permissions string. 2013-05-03 23:20:57 +02:00
Daniel Martí
bf3d3c6d69 Use \t like in the description. Add \n when none. 2013-05-03 23:00:25 +02:00
Daniel Martí
308b776f43 Add newline at the end. Slight speed-up. 2013-05-03 22:27:06 +02:00
Daniel Martí
5cf8cc1d55 Don't use hard-coded "NONE". Long/Short title. 2013-05-03 21:36:16 +02:00
Daniel Martí
0efdc9df00 Nicer loops. Don't start an iterator if not needed 2013-05-03 21:29:31 +02:00
Ciaran Gultnieks
26e7875c02 Merge commit 'refs/merge-requests/34' of git://gitorious.org/f-droid/fdroidclient into merge-requests/34 2013-05-03 11:30:55 +01:00
Ciaran Gultnieks
7904db43ea Merge commit 'refs/merge-requests/32' of git://gitorious.org/f-droid/fdroidclient into merge-requests/32
Conflicts:
	res/values/strings.xml
2013-05-03 11:29:00 +01:00
Peter Serwylo
62bc8c99c2 Fixed #240 - refresh view after resuming FDroid activity.
The problem was that since the changes to implement tab swiping and
fragments, the process for refreshing the lists was changed. The
previous infrastructure for invalidating the result of
FDroidApp.getApps() is still useful, so we presume that the list of apps
is only going to take a few cycles to return, instead of several
seconds. If it has been invalidated, so be it, we will put up with
waiting the few seconds.
2013-05-03 07:28:42 +10:00
Paul Sokolovsky
48cef5d4fa Merge commit 'refs/merge-requests/33' of git://gitorious.org/f-droid/fdroidclient into merge-requests/33 2013-05-01 12:55:49 +03:00
Peter Serwylo
4740204231 Fix issue 231 - action bar drop down not updating.
Requires a bit of a dodgey hack because of a bug in Android,
but it gets the job done. The good thing is that the hack is
quarantined to a class specifically dealing with the ActionBar
for devices that support it, and not required for earlier
devices. In the future if the bug is fixed, it will be relatively
easy to make sure that it is only applied to the versions which
require it.
2013-04-30 09:52:02 +10:00
Peter Serwylo
bc791f2338 Fix null pointer from detail_permissions 2013-04-29 10:38:27 +10:00
Peter Serwylo
8c41f18a1b Change permissions string to include version number of latest. 2013-04-28 19:57:12 +10:00
Peter Serwylo
7849182f98 i18n permissions. 2013-04-28 18:52:26 +10:00
Peter Serwylo
688142c83e bede's changes for adding permissions to app details. 2013-04-28 18:48:22 +10:00
Peter Serwylo
56de1eda6b Add hint to show text with icon in action bar (if room - i.e. in landscape on most devices). 2013-04-28 12:23:30 +10:00
Peter Serwylo
fa6777ae9d Removed my excessive debugging. 2013-04-18 14:58:54 +10:00
Peter Serwylo
6c64bdcb16 Think I've fixed the app updating issue.
Wwhen "populatingDetails" of an app, it's now a bit more careful.
It doesn't reject future apk files just because the app has been
updated by one repository.
2013-04-17 21:56:53 +10:00
Peter Serwylo
a63a7cae01 WIP: Think I've fixed issue, just need to remove excessive debug logs now. 2013-04-17 21:55:53 +10:00
Ciaran Gultnieks
3ba5c17937 Ensure scheduled updates continue after upgrade
Previously they would not resume until the next reboot.
2013-04-17 08:32:55 +01:00
Ciaran Gultnieks
3296e0da57 Get the update interval right 2013-04-17 08:31:45 +01:00
Ciaran Gultnieks
01114da06d Tabs begone 2013-04-16 20:35:14 +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
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