572 Commits

Author SHA1 Message Date
Daniel Martí
771947536e Add categories to AppDetails, layout tweaks 2014-01-01 21:08:41 +01:00
Peter Serwylo
2b1c335ea9 Refactored updating code to make future modifications easier.
Rebased several months of work, and attempted to resolve any conflicts.
The conflicts were a tad more difficult than usual to resolve because they
were in files where large blocks of code were refactored into different
files, and git didn't realise.

Conflicts:
	src/org/fdroid/fdroid/RepoXMLHandler.java
	src/org/fdroid/fdroid/UpdateService.java
2014-01-02 06:28:15 +11:00
Daniel Martí
214c920afd Do AddItems with addAll on AppListAdapter 2014-01-01 16:06:42 +01:00
Daniel Martí
219443b5a7 Fix support for 1.6 (4), fixes #414 2014-01-01 14:52:14 +01:00
Daniel Martí
56cb8ccdda Update summaries via methods, greatly decreasing source lines 2014-01-01 02:09:16 +01:00
Daniel Martí
962521947e Last pref summary: notifications 2014-01-01 01:47:10 +01:00
Daniel Martí
de40bed7e1 Do expert mode summary 2014-01-01 01:43:52 +01:00
Daniel Martí
6c9a375b27 Do db sync and apk cache settings summaries too 2014-01-01 01:32:33 +01:00
Daniel Martí
abef4f36e0 Do incompatible versions and permissions settings too 2014-01-01 01:20:21 +01:00
Daniel Martí
65981e3a25 Do updateHistoryDays summary like the others 2014-01-01 01:13:01 +01:00
Daniel Martí
d1d88ea26b Update summaries on onResume() consistently 2014-01-01 01:03:25 +01:00
Daniel Martí
177b2a170d Show value for the theme pref too, no dummy defualt summaries 2014-01-01 00:42:27 +01:00
Daniel Martí
02bac89b17 Do on/off and value summaries for auto updates 2014-01-01 00:38:47 +01:00
Daniel Martí
1b6a643b9c Start doing checkbox preferences with on/off summaries 2013-12-31 21:59:46 +01:00
Daniel Martí
1b83bf38ac Move pref names to Preferences.java 2013-12-31 21:35:37 +01:00
Daniel Martí
aaad028f3a Use OnSharedPreferenceChangeListener, recommended and easier to use 2013-12-31 21:29:38 +01:00
Daniel Martí
994610c516 TODO done: Use a HashMap when updating app lists 2013-12-31 20:46:21 +01:00
Daniel Martí
ea0eae6b11 Small changes to SearchResuts 2013-12-31 14:49:34 +01:00
Daniel Martí
d1d1201a6e Add missing dogecoin bit to RepoXMLHandler 2013-12-31 12:12:32 +01:00
Daniel Martí
1e4fe9fa2c Add basic dogecoin donation support 2013-12-31 12:11:03 +01:00
Daniel Martí
a189ff6e4e Replace UnlimitedDiscCache with LimitedAgeDiscCache and 30 days (fixes #190) 2013-12-31 11:35:00 +01:00
Daniel Martí
bc74d97195 Add very basic support for <provides> 2013-12-31 11:16:46 +01:00
Daniel Martí
70fd272871 Replace * and -> with UTF symbols 2013-12-31 11:03:34 +01:00
Daniel Martí
03f2869281 Always load incompatible apks on memory 2013-12-25 22:48:12 +01:00
Daniel Martí
e3789631ba Restructure applistitem:
* Move it to the top right corner
* Don't let the app name overlap it
* Ellipsize version names to leave space for name
* Summary can now take two lines if it needs them
* Installed versions are now bold
2013-12-25 22:46:46 +01:00
Daniel Martí
f3b247dc81 Don't override old DisplayImageOptions entirely 2013-12-25 20:11:26 +01:00
Daniel Martí
960e04d425 Merge commit 'refs/merge-requests/55' of gitorious.org:f-droid/fdroidclient 2013-12-25 19:46:09 +01:00
Daniel Martí
71be2d8e82 Avoid a couple possible NullPointerExceptions 2013-12-14 11:47:59 +01:00
Daniel Martí
e070883934 Remove empty overrides 2013-12-14 11:41:25 +01:00
Daniel Martí
744d46161e Remove unnecessary returns 2013-12-14 11:34:26 +01:00
Peter Serwylo
6bbb939e46 Refresh UI more appropriately.
When the repository is updated, it will check if the "name" or "description"
have been modified (or learnt for the first time) and if so, update the DB and UI.
2013-12-13 03:24:38 +11:00
Peter Serwylo
135ec1f0ff Merge branch 'master' into improvement/16/manage-single-repo 2013-12-12 10:53:14 +11:00
Peter Serwylo
8306007f84 UI tweaks for manage repos.
Padding for add repo dialog.
Move cursor to end of text input for new repo dialog.
2013-12-12 10:50:01 +11:00
Peter Serwylo
42d21bcbe9 Refresh view after updating new repo. 2013-12-12 10:34:25 +11:00
Daniel Martí
2ee5226d62 Remove wanted id instead of hard-coded 1... 2013-12-12 00:32:35 +01:00
Daniel Martí
a0a2fe4cf0 A few variable type fixes 2013-12-12 00:32:35 +01:00
Daniel Martí
ccbfa2744e Replace iterator with foreach 2013-12-12 00:32:35 +01:00
Daniel Martí
00a0f4399f Avoid a couple possible NullPointerExceptions 2013-12-12 00:32:35 +01:00
Daniel Martí
10fa5108da Delete a bunch of unused imports 2013-12-12 00:32:29 +01:00
Daniel Martí
9522edda74 Remove a couple unused vars 2013-12-12 00:14:26 +01:00
Daniel Martí
d042ed7508 Multiple appends are better than an append of a concatenation 2013-12-12 00:13:09 +01:00
Daniel Martí
f4fa7db8c8 Make a couple FDroid variables local as per lint suggestion 2013-12-12 00:12:52 +01:00
Peter Serwylo
8d44f6e444 Manage repo screen - constant sized list items, and update menu item. 2013-12-10 17:34:18 +11:00
Peter Serwylo
9384bc093b Refactored repo details fragment. 2013-12-09 18:41:53 +11:00
Daniel Martí
23dcfadefa Don't crash if an apk exists for a non-existing app 2013-12-07 13:00:10 +01:00
Peter Serwylo
41e0919c6f Removed TODO, reimplemented delete repo. 2013-12-06 15:29:22 +11:00
Peter Serwylo
4fdc23569b Added update button to repo details screen. 2013-12-06 13:01:05 +11:00
Peter Serwylo
82af6fc60e Merge branch 'master' into improvement/16/manage-single-repo
Phew, monster merge. Going to commit after *seemingly* resolving
conflicts, but it will no doubt take a few compile and runs to sort out
any funny stuff.

Conflicts:
	AndroidManifest.xml
	res/layout/addrepo.xml
	res/layout/appdetails.xml
	res/layout/repolisticons.xml
	res/values/strings.xml
	src/org/fdroid/fdroid/DB.java
	src/org/fdroid/fdroid/FDroid.java
	src/org/fdroid/fdroid/ManageRepo.java
	src/org/fdroid/fdroid/UpdateService.java
2013-12-06 08:43:11 +11:00
Peter Serwylo
93fec74728 WIP: implementing context and action bar menus for repo management.
SwitchCompat will return a Switch or a ToggleButton depending on the
platform (doesn't matter, both are CompoundButtons) and this will be
added to the repo_item view programatically.

I'm using some pretty specific listeners
to communicate between the details fragment and the repo list activity.
I've also split the functionality (e.g. for deleting) between the repo
list and the details view. In the future, when we have content providers
for repos, it will be easier to take care of everything from the details
screen, and automatically notify the repo list of changes.

Refactored update service.
Now has a static update method that can be called which
will setup the required intent to begin the update. It also deals with
progress listeners and dialogs for the user, so all of this is moved out
of FDroid. This was so that RepoDetailsFragment can now invoke the same
functionality.
2013-12-05 13:04:33 +11:00
Hans-Christoph Steiner
1ad693931f if incoming repo Intent is handled, then return to the sending Activity 2013-12-02 21:55:55 -05:00