144 Commits

Author SHA1 Message Date
Peter Serwylo
af2a9ecfb6 Safer preference managing. Fix "compact layout requires reload".
Previously, everybody had to remember the preference name and the
default value. If it was ever changed, this would have to be updated
everywhere. Now, the Preferences class is responsible for talking to the
SharedPreferences functionality of ANdroid.

I've started with just the compactlayout preference, because
that is what I required for this fix.
2013-07-26 09:38:23 +10:00
Daniel Martí
bc77804eee Add a small padding to the "found x applications matching..." string in SearchResults 2013-07-26 00:14:42 +02:00
Daniel Martí
0c1b854b69 Remove "reset" from the preferences page.
Currently, removing the cache does the job much better. The only thing
clearing the cache doesn't do which "reset" did is removing the databases. But
we don't want to do that anyway.

If someone wants to do that, they can just deactivate or remove a repo, and it
will get wiped from the database.
2013-07-23 17:02:35 +02:00
Peter Serwylo
d2e2b492fb Added missing > in XML. 2013-07-21 07:20:53 +10:00
Daniel Martí
d315521c7d Remove rtl layout support (WIP in rtl-layout branch) 2013-07-18 12:06:04 +02:00
Daniel Martí
89f8630f12 Add share (via fdroid://details?id=app.id) button 2013-07-15 16:49:03 +02:00
Daniel Martí
a46b8e8663 Revert all the fast scroll always enabled changes 2013-07-11 12:45:13 +02:00
Daniel Martí
efb37e459f Remove unnecessary padding.
On 3.0+, the scrollbar padding already leaves some space.
2013-07-10 14:52:15 +02:00
Daniel Martí
78e7810c14 Recover description scrollbar only when in portrait 2013-07-10 14:19:58 +02:00
Daniel Martí
c1d023de0f Disable scrollbars on AppDetails 2013-07-10 12:59:47 +02:00
Daniel Martí
ed54b028a9 Make the icon spacing a lot easier 2013-07-09 23:33:05 +02:00
Ciaran Gultnieks
8eda160a30 Translation updates 2013-07-08 17:27:49 +01:00
Daniel Martí
0c259673d8 non-compact stuff is now hidden by default via xml
Also, forgot to add the backwards compatibility for END_OF
2013-07-08 14:26:07 +02:00
Daniel Martí
74ca3c2aa5 Fix layouts for APIs <= 16 2013-07-08 13:03:10 +02:00
Daniel Martí
f5785c3de0 Add very basic support for RTL languages 2013-07-07 12:12:29 +02:00
Daniel Martí
4f7858ad68 Add a message to differentiate when we download icons 2013-07-05 16:55:51 +02:00
Daniel Martí
4a61c20e92 Merge commit 'refs/merge-requests/46' of gitorious.org:f-droid/fdroidclient 2013-06-27 14:50:33 +02:00
Daniel Martí
9ba01d16bf Merge commit 'refs/merge-requests/51' of gitorious.org:f-droid/fdroidclient 2013-06-27 13:04:47 +02:00
Peter Serwylo
7ef7489c79 Updated description of 'Compact Layout' 2013-06-14 05:43:27 +10:00
Peter Serwylo
1caa7510b6 Changed compact view to show description.
Removed the license and the version info from the compact view, and
showed the description instead. The installed status, and whether the
app can be updated or not (but not which version can be updated to) is
now shown via little icons on the right hand side of the list view.

Also refactored adapters to allow different views for
Available/Installed/Updates tabs. This is because I didn't want the
"installed" status icon in the installed tab, and neither the
"installed" nor the "updates" icon in the "updates" tab.

The adapters were moved to the "views" package, because I needed to add
three new classes and they started to clutter the list of *.java files.
2013-06-10 21:57:28 +10:00
Daniel Martí
925c7c08d1 Add name and description to repo, bump DB to v21 2013-05-28 08:58:36 +02:00
Daniel Martí
780e0e3d54 Some more spacing fixes (suggestion by daithib8) 2013-05-27 18:08:24 +02:00
Daniel Martí
18ae6e6da2 Refactor about screen.
* Add paddings.
* Don't use hard-coded pixel sizes.
* Don't use white color directly (this would soon break the white holo theme)
* Don't use an "empty" textview to force a vertical space.

Looks much cleaner now, and the code is easier on the eyes.
2013-05-26 12:25:46 +02:00
Daniel Martí
6f3c5b4e85 More spacings in lists and app details screen 2013-05-26 12:25:20 +02:00
Ciaran Gultnieks
ee0de7b27e Translation updates 2013-05-21 11:40:25 +01: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
Ciaran Gultnieks
460335fce9 Translation updates 2013-05-08 12:09:25 +01: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í
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í
dbb084accd Disable preferences after desc by default. 2013-05-03 23:02:13 +02:00
Daniel Martí
5cf8cc1d55 Don't use hard-coded "NONE". Long/Short title. 2013-05-03 21:36:16 +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
Paul Sokolovsky
43f1c6d8a6 Remove "all" from "Checking all apps compatibility..."
"All" kinda made sense in the context of internal workings
(fetch package list from several repos, then process compatibility of
all apps), but superfluous from user's perspective.
2013-05-01 13:04:59 +03: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
David Black
9928b9408f add xxhdpi launcher icon 2013-04-21 19:58:32 +01:00
David Black
edc97f0f26 better padding for icons 2013-04-19 18:17:02 +01:00
David Black
1038aa5d99 reduced all icons by 12.5% compared with fdroid-logo.svg 2013-04-18 15:02:34 +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
d641ad8539 Default https when adding repo 2013-04-15 10:32:59 +01:00
Ciaran Gultnieks
a2843aa7be Translation updates 2013-04-12 14:53:15 +01:00