212 Commits

Author SHA1 Message Date
Ciaran Gultnieks
56295726bd Resolve bad interaction with app verify 2013-05-30 12:55:32 +01:00
Daniel Martí
6f3c5b4e85 More spacings in lists and app details screen 2013-05-26 12:25:20 +02:00
Daniel Martí
2b7585c1cf Check current version by signature as well
This prevents multiple versions shown as installed, which might happen if many
repos are used and contain the same versions of some app.
2013-05-25 23:01:50 +02:00
Daniel Martí
82ec7fe45c Add bitcoin and flattr support 2013-05-25 12:26:12 +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
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í
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
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
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
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
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
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
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
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
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
69cd579eda Make menu update after install. 2013-04-11 19:30:53 +10:00
Peter Serwylo
d2c8f0de68 Replace CompatibilityUtils with android.support.v4.MenuItemCompat 2013-04-10 13:04:49 +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
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
Felix Ableitner
bdf165d80c Fixed various warnings. 2012-10-27 13:05:17 +02: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
c8aeb08dfa Better internal handling of repos 2012-09-26 21:31:03 +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
5329e4431a Fix incorrect incompatible greying due to view reuse 2012-09-19 21:37:22 +01:00
Ciaran Gultnieks
2ae4e6516e Re-implement show incompatible, and fix details layout more 2012-09-19 17:06:49 +01:00
Ciaran Gultnieks
006ee57bbf Handle long descriptions properly 2012-09-19 13:14:36 +01:00
Ciaran Gultnieks
547e14e850 Prevents download cancel when touching outside progress dialog (ICS) 2012-09-18 21:27:48 +01:00
Ciaran Gultnieks
14cdf092d3 Tidies up app details view a bit and adds summary/package id
The package ID is shown only in expert mode.
2012-09-18 20:59:00 +01:00
Ciaran Gultnieks
111ac731dc Fix check for unknown added date 2012-09-18 18:05:52 +01:00