100 Commits

Author SHA1 Message Date
Daniel Martí
0a515dfae1 Bump to 0.84-test 2015-04-01 20:56:47 +02:00
Peter Serwylo
23ed692436 "Select apps for swap" screen work on API <= 10.
* Provide CheckBox for selected items

Newer API's highlight the background using the "activated" state. Older
APIs need this to be implemented differently, so there are now checkboxes
on the left of the list view items to provide this functionality.

 * Clean up IDE warnings

Diamond operator for generics, remove unused imports and unused method.

 * Adapter class created for installed apps

Cleaned up the code to do with binding views to the adapter in this view.
Previously it made quite a few assumptions about the structure of the layout,
e.g. "layout.getParent().getParent() is a LinearLayout", which would cause
crashes if the layout changed slightly.
2015-04-01 15:27:24 +11:00
Peter Serwylo
4711b50836 Swap works on 2.3 devices.
* Cleaned up text alignment styles for API < 17.

API v17 has a textAlignment style, wherease previous verisons rely on
the "gravity" property. This change includes gravity="center" where there
was previously only textAlignment="center".

 * Fragments get added properly on 2.3 device.

For some reason, when adding the fragment to android.R.id.content, it
wouldn't work on my 2.3 device. This change includes a (almost) empty
activity layout with a single FrameLayout. The fragments are added to
this rather than "content", and it works better. It is not perfect - it
still adds the fargments behind the action bar, and so the action bar
appears blue. But at least they are there :)

 * Added translatable strings where constants were used before.

Not related to v2.3 support, but stil important for a stable release,
that is fully translated.
2015-04-01 15:26:10 +11:00
Peter Serwylo
953d3ed8d7 Added search functionality to "add apps to swap" screen.
This was present in the old local repo implementation, and the skeleton
code for implementing it was copied to the swap fragment. The only change
neccesary was to add a search button to the menu and make it have a
SearchView as its action view.
2015-04-01 15:26:10 +11:00
Peter Serwylo
f1655496d8 Fix issue #2: better notifications on ICS+ devices.
Shows an expandable notification on devices that support it (4.1+
I believe). The support library does most of the job of handling
incompatibilities between platforms.
2015-04-01 08:17:05 +11:00
Daniel Martí
bd4cd81f50 Merge branch 'fix/issue-34-empty-list' of https://gitlab.com/pserwylo/fdroidclient 2015-03-30 16:22:22 +02:00
Daniel Martí
c11fdd11d8 Bump to 0.83 2015-03-26 19:07:25 +01:00
Daniel Martí
f1084452d4 Add remove-empty-trans script and run it 2015-03-26 19:05:36 +01:00
Daniel Martí
0ced75d451 Bump to 0.82 2015-03-23 16:44:45 +01:00
Daniel Martí
bb775bde08 Run translation fixing scripts 2015-03-23 16:43:38 +01:00
Daniel Martí
61f9d3ac86 Run fix-apostrophes 2015-03-23 12:21:08 +01:00
F-Droid Translatebot
cb9ef84027 Translation updates 2015-03-23 08:55:31 +00:00
Daniel Martí
bc69c8d6ed Run fix-apostrophes 2015-03-19 19:43:18 +01:00
F-Droid Translatebot
0736aef5fc Translation updates 2015-03-19 18:37:46 +00:00
Peter Serwylo
3abb426fc3 Added a message when any of the app lists are empty.
Previously, a few people have been confused by an empty list when they first
open F-Droid (e.g. if they are not connected to the internet, and repos didn't
update). This provides some feedback so that there is never a blank screen.

Fixes Issue #34.
2015-03-16 21:42:10 +11:00
Daniel Martí
c2eb9a9b67 Bump to 0.81-test 2015-03-15 19:14:04 +01:00
Daniel Martí
f77f9c5435 Run remove-partial-arrays 2015-03-15 19:13:30 +01:00
Daniel Martí
06ae1bc044 Merge branch 'fix/issue-5-guess-repo-path' of https://gitlab.com/pserwylo/fdroidclient 2015-03-15 16:58:06 +01:00
Romain Vimont
f0a8780755 Use the same fragment id for portrait & landscape
To refresh the header, we retrieve the fragment from its id.

But the landscape layout used another id for the same fragment, so it
could not be retrieved, leading to a NullPointerException in landscape.

Therefore, use the same fragment id as in the portrait layout.
2015-03-13 14:48:58 +01:00
Peter Serwylo
74b285a77f Fix Issue #5: Guess at common repo paths (/, /fdroid/repo, /repo)
When adding repositories using the Manage Repos activity, firstly look
for an /index.jar appended on the URL provided by the user. If that
doesn't work (HTTP status code other than 200) then it will try
/fdroid/repo/index.jar, then /repo/index.jar. If it can't establish a
connection to the server, or if none of the above attempts results
in a 200, then the path provided by the user is kept (even though we
have a hunch it might be wrong).

This is to cover for the case where people arn't connected to the net.
Another way to deal with no internet connectivity is provided by a
"Skip" button on the dialog while searching for the index.jar.

The searching for index.jar is done by doing a HTTP HEAD request, so
the entire jar needn't be downloaded.

Finally, to make this happen in a clean sort of way, I refactored the
ManageReposActivity a little bit to encapsulate all of the add repo
dialog handling into a subclass. This way, the outer class doesn't
need to know things like: Is the dialog showing, what state is it in,
is the background task to search for index.jar files running, how and
when to cancel that task, etc.
2015-03-14 00:44:17 +11:00
Daniel Martí
070054892e Run optipng -o9 on all png images 2015-03-11 23:35:03 +01:00
Romain Vimont
0570c85133 Escape apostrophe in resources
In XML resources files, apostrophes must be escaped.

(fix compilation)
2015-03-11 15:50:03 +01:00
Daniel Martí
4a5d732c01 Run remove-unused-trans 2015-03-10 16:14:10 +01:00
Daniel Martí
116947082a Run fix-ellipsis 2015-03-10 16:12:23 +01:00
F-Droid Translatebot
d88ad55504 Translation updates 2015-03-10 16:00:42 +01:00
Daniel Martí
d338046329 Bump to 0.80-test 2015-03-08 20:38:44 +01:00
Daniel Martí
996f81ced2 Run remove-partial-arrays 2015-03-08 20:34:58 +01:00
Daniel Martí
27f5793fd8 Run tools/remove-unused-trans.sh 2015-03-05 14:13:39 +01:00
Daniel Martí
8ed63c7e7a Run tools/fix-ellipsis.sh 2015-03-05 14:13:22 +01:00
Daniel Martí
911b95dc87 Add tools/fix-apostrophes.sh and run it 2015-03-05 14:11:33 +01:00
F-Droid Translatebot
f062de9092 Translation updates 2015-03-05 11:58:10 +01:00
Peter Serwylo
2da1a5acd4 Merge branch '172-typo' into 'master'
Fix #172:  typo in English strings

Fix typo in English string (Do you ant >> Do you want)

See merge request !54
2015-02-28 22:42:10 +00:00
Daniel Martí
2495251a22 Run remove-unused-trans 2015-02-25 20:42:34 +01:00
Daniel Martí
c09708a09e Get rid of "on/off" descriptions for checkbox prefs
Closes #149
2015-02-25 19:52:11 +01:00
Ciaran Gultnieks
da01be7986 Merge branch 'update_interval' into 'master'
Repository update interval (#158)

This is issue #158 https://gitlab.com/fdroid/fdroidclient/issues/158

I have modified the update interval to include "weekly" and "Every 2 Weeks" and removed "Hourly" as update frequencies. THe maximum interval was daily which was still too often for me. I have removed "Hourly" as you probably have to pay for your bandwidth and that is insanely often :-). Every 4 hours should still be plenty often.

2 Languages did not have the right amount of options there anyway, and I fixed those.

Please check, test, judge and ... hopefully ... merge.

See merge request !52
2015-02-25 16:02:42 +00:00
Laura Arjona Reina
2da1e14374 Fix typo (#172) 2015-02-23 15:44:50 +01:00
Daniel Martí
63a86df035 Bump to 0.79-test 2015-02-16 08:38:00 +01:00
Sebastian Spaeth
1895d2f909 Allow to check repositories less often
The maximum interval to check repositories was "Daily". Allow to also
update weekly and bi-weekly and remove the "hourly" option (someone has
to pay for all that bandwidth after all). I was considering to even remove
the "Every 4 hours" option, but did not dare do it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2015-01-30 16:15:45 +01:00
Daniel Martí
d2ade5c69b Don't show "not installed" for apks installed from someplace else
Fixes #107.
2015-01-03 20:27:28 +01:00
Daniel Martí
2d44c35951 Remove more trailing whitespaces 2015-01-03 17:00:11 +01:00
Daniel Martí
30385baf16 Bump to 0.78 2014-12-31 01:04:15 +01:00
Daniel Martí
e6d784368f Fix a StringFormatInvalid error 2014-12-31 00:15:20 +01:00
Daniel Martí
5b2d75c018 Run fix-ellipsis 2014-12-31 00:00:20 +01:00
Daniel Martí
5af7cac4b7 Remove all trailing whitespaces in source files 2014-12-30 23:48:36 +01:00
F-Droid Translatebot
ddc4181bba Translation updates 2014-12-30 22:37:50 +00:00
F-Droid Translatebot
3a7e68da9e Translation updates 2014-12-18 11:02:35 +00:00
F-Droid Translatebot
442651b6fe Revert "Translation updates" - zh-hk is not valid for Android
This reverts commit f681eaac975d4d643588a61298f6d22078f7f574.
2014-12-18 11:01:05 +00:00
F-Droid Translatebot
f681eaac97 Translation updates 2014-12-18 10:44:03 +00:00
Daniel Martí
c7e9e16a6b Bump to 0.77-test 2014-12-09 15:55:13 +01:00
Daniel Martí
06dd4c8dcb Move F-Droid project into subdir, keeping a root gradle project
Also improved .gitignore a tad
2014-12-09 15:36:07 +01:00