497 Commits

Author SHA1 Message Date
Peter Serwylo
35f73f3786 Also hide the coloured bar below the category spinner.
In addition, added a @Nullable constraint on the categorySpinner
and a null guard when resuming the fragment to handle possible
null cases (though I don't think there will be any).
2015-12-14 22:45:37 +11:00
Peter Serwylo
58205fefec Don't animate category spinner hiding
This caused the entire list view to e animated when navigating
back to the Available tab. Tried switching the `animateLayoutChanged=true`
to a child view only containing the category spinner, but this is not how
the animation handling works. It needs to animate both the thing being
hidden/shown, and also the next sibling of that thing to work properly.
Thus, moving the spinner to its own child and leaving the list didn't work.
2015-12-14 22:41:29 +11:00
Peter Serwylo
86fb652fc3 When searching "Available" tab, search all the things.
Removed the option to search the currently selected category, as suggested
by others on gitlab.
2015-12-14 22:41:29 +11:00
Daniel Martí
0cc6272664 Add Danish to the list of languages 2015-12-13 19:30:59 +01:00
F-Droid Translatebot
d9c48c28f6 Pull translation updates from Weblate
Translators:

Adrià García-Alzórriz      Catalan
agilob                     Polish
Ajeje Brazorf              Sardinian
bd339                      Danish
Benedikt Geißler           German
Danial Behzadi             Persian
Daniil Stryukov            Ukrainian
halcyonest                 Korean
ikmaak                     Dutch
Ldm Public                 French
Massimiliano Caniparoli    Italian
Mladen Pejaković           Serbian
Olexandr Nesterenko        Ukrainian
Phạm Nguyễn Hoàng          Vietnamese
relan                      Russian
Tobias Bannert             German
2015-12-13 19:24:38 +01:00
Daniel Martí
fee37d88cf Run remove-unused-trans.py 2015-12-07 20:46:34 +01:00
F-Droid Translatebot
4a77b057bd Pull translation updates from Weblate
Translators:

agilob                Polish
Ajeje Brazorf         Sardinian
Alberto Moshpirit     Spanish
Daniil Stryukov       Ukrainian
Enol Puente           Asturian
Jaroslav Lichtblau    Czech
Ldm Public            French
lucnsy                Chinese (China)
Marcelo Santana       Portuguese (Brazil)
Mladen Pejaković      Serbian
naofum                Japanese
relan                 Russian
2015-12-07 20:38:20 +01:00
Peter Serwylo
7c99b6ce91 Merge branch 'fix-324--memory-issue-repo-update' into 'master'
Fix 324 : Out of memory errors while updating repos.

Fixes #324, but in the process makes the updater take a lot longer. My benchmarks tell me that an update which used to take approx 30 seconds on my Nexus 4 now takes about 50-55 seconds. This is because it first inserts the apps into the database (in a temp table) and then subsequently copies that table to the actual table. This means there is a lot more disk access than before.

I'm open for discussion on whether this tradeoff is worth it - however I'll caution that there is always going to be a tradeoff between faster and more memory vs slower and less memory. This is the case with all software, and perhaps more so with memory constrained devices such as phones. Also, as the repo index grows (until perhaps we are able to extract the app descriptions in the future), this will become more of an issue.

I'd also like this to be CR'ed properly before merging, because it changes some important code around the repo updater. It is important because security, and it is also important because it is the main thing that F-Droid needs to do (get a list of apps to show the user).

See merge request !173
2015-12-07 13:57:14 +00:00
Daniel Martí
1e740cf72a Merge remote-tracking branch 'upstream/merge-requests/174' 2015-12-05 16:16:36 +01:00
F-Droid Translatebot
30a013a4d1 Pull translation updates from Weblate
Translators:

ageru                French
Ajeje Brazorf        Sardinian
Alberto Moshpirit    Spanish
enolp                Asturian
Ldm Public           French
lucnsy               Chinese (China)
Mladen Pejaković     Serbian
naofum               Japanese
2015-12-05 16:12:52 +01:00
relan
aef0d8be87 Remove unused string "about_desc" 2015-12-03 13:05:27 +03:00
relan
88c2774692 Refresh about dialog
Now it's vertically-oriented. Mention of Aptoide is removed because
F-Droid went far away from it.
2015-12-03 13:03:41 +03:00
relan
2ecb519a56 Rework styles for text caption and text body
Now they are reusable and include layout_with and layout_height
attributes.
2015-12-03 13:03:41 +03:00
Daniel Martí
f67527a86e Replace _i18n with _count in tab strings
All strings are internationalized. Use a name that actually says what
they mean.
2015-12-02 18:46:01 +01:00
Daniel Martí
aff3995475 tab fragments: use string resources consistently
Also, remove unnecessary "Installed" tab title duplicate.
2015-12-02 18:45:49 +01:00
F-Droid Translatebot
2154d37dc8 Pull translation updates from Weblate
Translators:

Ajeje Brazorf       Sardinian
Ldm Public          French
Mladen Pejaković    Serbian
naofum              Japanese
2015-12-02 18:37:18 +01:00
Ruben Roy
676d173cc9 Merge branch 'master' into 'master'
Add counter to "Installed" tab. Closes #497



See merge request !176
2015-12-02 00:30:23 +00:00
Ruben Roy
ab00d49737 Add counter to "Installed" tab. 2015-12-02 05:51:13 +05:30
Peter Serwylo
6969dcb90e Change "inserting" string to not include progress for last phase of update. 2015-11-30 18:16:11 +11:00
F-Droid Translatebot
e50a12731d Pull translation updates from Weblate
Translators:

Alberto Moshpirit      Spanish
naofum                 Japanese
Olexandr Nesterenko    Ukrainian
RACER                  Japanese
Rafał Michalski        Polish
Tobias Bannert         German
2015-11-29 19:52:32 +01:00
F-Droid Translatebot
2cbaa3eaed Pull translation updates from Weblate
Translators:

Ajeje Brazorf          Sardinian
enolp                  Asturian
Ldm Public             French
Marcelo Santana        Portuguese (Brazil)
Mladen Pejaković       Serbian
naofum                 Japanese
Nathan Follens         Dutch
Olexandr Nesterenko    Ukrainian
riotism                Chinese (Hong Kong)
Sergio Oller           Catalan
2015-11-23 13:13:09 +01:00
Peter Serwylo
b9342e909b Merge branch 'master' into 'master'
Improved support for HTTP Basic Authentication

Extended DownloaderFactory to support optional username & password parameters.

Extended HttpDownloader to check for HTTP 401 Authorization Required status code
and send a simple HTTP Basic Authentication header with all requests.

Extended ManageReposActivity to support repositories that use HTTP Basic
Authentication, added a dialog to prompt for username and password.

Extended RepoDetailsActivity to be able to display and modify the authentication
credentials.

See merge request !171
2015-11-23 06:43:49 +00:00
Daniel Martí
9dceb60786 Add english to list of locales to pick
Useful to make F-Droid be in English if the system language is
different.

Fixes issue brought up in https://f-droid.org/forums/topic/f-droid-0-97-language-selection/
2015-11-22 03:01:04 -08:00
Daniel Martí
69fdaf874e Add missing sq language to langs list 2015-11-22 02:53:40 -08:00
Daniel Martí
ecff5b1832 Replace phone with device in strings 2015-11-22 02:52:16 -08:00
F-Droid Translatebot
20666ba824 Pull translation updates from Weblate
Translators:

Jack Phoenix           Finnish
Jaroslav Lichtblau     Czech
Michalis               Greek
Olexandr Nesterenko    Ukrainian
riotism                Chinese (Hong Kong)
Sergio Oller           Catalan
2015-11-22 02:50:50 -08:00
Daniel Martí
35c65fbffa Remove UnusedResource usages in translations 2015-11-19 08:17:05 -08:00
Daniel Martí
6af08494a2 Revert "Suppress lint warnings about unused categories names"
This reverts commit 5c9e314c9bfdd8df97b702c16b729ba440964168.

Error in question:

https://stackoverflow.com/questions/19526945/android-gradle-merged-values-xml-uses-wrong-namespace
2015-11-19 08:16:55 -08:00
F-Droid Translatebot
e29ae6de1a Pull translation updates from Weblate
Translators:

Indrit Bashkimi        Albanian
Kiril LastName         Bulgarian
Olexandr Nesterenko    Ukrainian
relan                  Russian
Sergio Oller           Catalan
tactmayers             Chinese (Hong Kong)
zmni                   Indonesian
2015-11-19 08:06:38 -08:00
F-Droid Translatebot
46c066468a Pull translation updates from Weblate
Translators:

Benedikt Geißler     German
Ronalds              Latvian
Sergey Vladimirov    Russian
Tobias Bannert       German
2015-11-17 19:48:48 -08:00
Christian Morgner
34838fd0dc Added username & password fields to the REPO table, increased DB version to 52.
Extended DownloaderFactory to support optional username & password parameters.

Extended HttpDownloader to check for HTTP 401 Authorization Required status code
and send a simple HTTP Basic Authentication header with all requests.

Extended ManageReposActivity to support repositories that use HTTP Basic
Authentication, added a dialog to prompt for username and password.

Extended RepoDetailsActivity to be able to display and modify the authentication
credentials.
2015-11-15 13:04:23 +01:00
Daniel Martí
682cf58aa9 Merge branch 'search-widget' into 'master'
Replace search dialog with a search widget

SearchView is the recommended way to implement search UI. See https://developer.android.com/guide/topics/search/search-dialog.html#UsingSearchWidget

The UX is still far from ideal but looks much better now.

Before and after (Gingerbred):

![gingerbred-before](/uploads/f724afaf152aeef8ff9cb3e838427d22/gingerbred-before.png)
![gingerbred-after](/uploads/da67fe57d2a55e64cce7d0cba31aa181/gingerbred-after.png)

Before and after (Lollipop):

![lollipop-before](/uploads/4a50258993a8304d984450456d07e3bb/lollipop-before.png)
![lollipop-after](/uploads/4b49b2f802eca567c6713fe653b10331/lollipop-after.png)


See merge request !168
2015-11-13 17:22:19 +00:00
Daniel Martí
7581d8443e Merge branch 'lint-unused-resources' of https://gitlab.com/relan/fdroidclient
Fix some lint warnings about unused resources

No functional changes, just cleanups.
2015-11-13 18:19:13 +01:00
F-Droid Translatebot
3afe248159 Pull translation updates from Weblate
Translators:

AtomiKe                 French
Erwin Scheuch-Heilig    German
Ldm Public              French
Michal Čihař            Czech
pizzaiolo               Esperanto
2015-11-13 18:16:36 +01:00
relan
7458dff6e9 Remove unused string repo_icon 2015-11-13 09:14:45 +03:00
relan
0324631a4e Remove unused string repo_update 2015-11-13 09:14:44 +03:00
relan
bb5665ab23 Remove unused color 2015-11-13 08:58:06 +03:00
relan
5c9e314c9b Suppress lint warnings about unused categories names
They are actually used from the code.
2015-11-13 08:58:06 +03:00
relan
e841d63ea9 Replace search dialog with a search widget
SearchView is the recommended way to implement search UI. See
https://developer.android.com/guide/topics/search/search-dialog.html#UsingSearchWidget
2015-11-13 08:27:55 +03:00
relan
32413a2753 Put empty text below the categories spinner
When an on-screen keyboard is used to enter a search query, empty text
can overlap categories spinner on small screens.
2015-11-13 08:19:57 +03:00
F-Droid Translatebot
e0c09853b9 Pull translation updates from Weblate
Translators:

ageru               French
Benedikt Geißler    German
Kiril LastName      Bulgarian
Marcelo Santana     Portuguese (Brazil)
Marvin W            German
2015-11-09 17:12:35 +01:00
relan
b533bc2112 Remove unused string swap_tap_to_select_apps 2015-11-09 15:51:18 +03:00
relan
3bbcca9966 Remove unused string update_all 2015-11-09 15:47:20 +03:00
relan
96ffb5f0fd Remove unused layouts 2015-11-09 15:45:47 +03:00
relan
7fdcd706fd Split tabs layouts
Use separate layouts for the three tabs. This simplifies code and improves
maintainability.
2015-11-09 15:43:09 +03:00
relan
950854318b Add styles for app list and empty text
Those styles will be used in the three layouts that will define the
look of the fragments.
2015-11-09 15:43:09 +03:00
F-Droid Translatebot
447dbe73ea Pull translation updates from Weblate
Translators:

ageru                French
Phạm Nguyễn Hoàng    Esperanto
Phạm Nguyễn Hoàng    Vietnamese
2015-11-07 14:03:48 +01:00
Peter Serwylo
002d356ece Ensure the "no apps to display" doesn't overlap with the category spinner.
There is no layout .xml file for the updated/installed list,
but there is for the available apps list. As a result, the `TextView` containing
the empty list message is added dynamically. With the recent improvements to
the category spinner, a `RelativeLayout` was used instead of a `ListView`. To
remedy this, the layout has been augmented to ensure the dynamically added
`TextView` still displays correctly.
2015-11-07 09:05:10 +11:00
F-Droid Translatebot
c6a8bd2139 Pull translation updates from Weblate
Translators:

Dimos D            Greek
Dmitry Mikhirev    Russian
Michalis           Greek
Szöllősi Attila    Hungarian
2015-11-05 12:06:14 +01:00
relan
0bd995a731 Set category filter height to 48dp
This improves usability of the category spinner. Divider is now behind
it. This makes the layout visually more compact while keeping actual
touch target 48dp. See
http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-touch-target-size
2015-11-05 11:56:18 +03:00