488 Commits

Author SHA1 Message Date
Peter Serwylo
1eae135929 Add user feedback for when WiFi is being disabled.
On some devices this can take some time (i.e. a second) and the UI needs
to be disabled for that time. This should stop users quickly stopping and
starting regularly, queuing up many "start jmdns, stop jmdns, start jmdns"
calls.
2016-02-27 09:28:17 +11:00
Daniel Martí
b08b97466f Fix a single rogue ellipsis 2016-02-26 15:00:50 +00:00
Daniel Martí
91c3278920 Take RTL suggestions from lint (warnings) 2016-02-26 14:57:42 +00:00
Daniel Martí
e390561c7c install_confirm: remove useless lines
These are already in its layout-v11 version. And as lint points out,
these need v11:

	?android:attr/buttonBarStyle requires API level 11 (current min is 8)
	?android:attr/buttonBarButtonStyle requires API level 11 (current min is 8)
2016-02-26 14:48:45 +00:00
Daniel Martí
1b6fc3da7c Move app_permission_item_money to layout-v17
Since it's only ever used on android-17 or later, move it there to keep
lint happy with all the NewApi errors.
2016-02-26 14:47:09 +00:00
Daniel Martí
43a3c2b042 Remove useless app:backgroundTint from layouts
app:backgroundTint only works on AppCompatButton from v7-appcompat.
We're using a regular Button in these, so this attribute is useless and
makes lint error.

More info:

	https://stackoverflow.com/questions/27735890/lollipops-backgroundtint-has-no-effect-on-a-button
2016-02-26 14:26:05 +00:00
Daniel Martí
cdecc1604c Add all missing Left/Right attributes in RTL
This improves support on older Android releases.
2016-02-25 16:56:23 +00:00
Daniel Martí
073052f5cc Move app_description to donottranslate.xml
As lint points out, only the original string is used in the
AndroidManifest.xml. So having it translated is useless.
2016-02-25 16:40:58 +00:00
Daniel Martí
54c4714b9d Fix string format issues 2016-02-25 13:56:06 +00:00
F-Droid Translatebot
d79fccb2da Pull translation updates from Weblate
Translators:

agilob                 Polish
Hsiu-Ming Chang        Chinese (Taiwan)
Nathan Follens         Dutch
Perry Verheij          Dutch
Robin van der Vliet    Dutch
Robin van der Vliet    Esperanto
Verdulo                Esperanto
Wathiq Qajar           Arabic
2016-02-25 12:38:43 +00:00
F-Droid Translatebot
6d6aa98c6b Pull translation updates from Weblate
Translators:

Hsiu-Ming Chang    Chinese (Taiwan)
Verdulo            Esperanto
2016-02-16 11:58:04 +00:00
Daniel Martí
247dfc5ecf Run remove-unused-trans.py 2016-02-14 15:15:15 +00:00
F-Droid Translatebot
6a6a37c42e Pull translation updates from Weblate
Translators:

Coucouf           French
Danial Behzadi    Persian
Green Lunar       Hebrew
Licaon Kter       Romanian
M2ck              French
Marian Hanzel     Slovak
Verdulo           Esperanto
Verdulo           Polish
2016-02-14 15:14:22 +00:00
F-Droid Translatebot
4148edeccd Pull translation updates from Weblate
Translators:

Allan Nordhøy    Norwegian Bokmål
Licaon Kter      Romanian
2016-02-09 16:00:10 +00:00
F-Droid Translatebot
597e9c42a2 Pull translation updates from Weblate
Translators:

fabrizio maggi     Italian
Gabriele Pau       Italian
Irvan Kurniawan    Indonesian
Karola Marky       Latvian
Patrik Kretic      Slovenian
riotism            Chinese (Hong Kong)
2016-02-06 12:09:08 +00:00
F-Droid Translatebot
bf435bce66 Pull translation updates from Weblate
Translators:

bd339                      Danish
Danial Behzadi             Persian
David Koňařík              Czech
Massimiliano Caniparoli    Italian
Olexandr Nesterenko        Ukrainian
Sebastiano Pistore         Italian
Tobias Bannert             German
Tong Hui                   Chinese (China)
2016-02-01 12:23:04 +00:00
Daniel Martí
64c0950e76 Fix formatting in values-fa
As reported by a user via ACRA:

java.util.UnknownFormatConversionException: Conversion: I
        at java.util.Formatter$FormatToken.unknownFormatConversionException(Formatter.java:1399)
        at java.util.Formatter$FormatToken.checkFlags(Formatter.java:1336)
        at java.util.Formatter.transform(Formatter.java:1442)
        at java.util.Formatter.doFormat(Formatter.java:1081)
        at java.util.Formatter.format(Formatter.java:1042)
        at java.util.Formatter.format(Formatter.java:1011)
        at java.lang.String.format(String.java:1988)
        at android.content.res.Resources.getString(Resources.java:355)
        at android.content.Context.getString(Context.java:350)
        at org.fdroid.fdroid.UpdateService$1.onReceive(UpdateService.java:210)
        at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
        at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
        at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5136)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
        at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
        at dalvik.system.NativeStart.main(Native Method)
2016-01-27 10:58:10 +00:00
F-Droid Translatebot
5a03f6a786 Pull translation updates from Weblate
Translators:

Enol Puente       Asturian
nautilusx         German
Sérgio Marques    Portuguese (Portugal)
Саша Петровић     Serbian
2016-01-25 11:34:20 +00:00
F-Droid Translatebot
05c6269d53 Pull translation updates from Weblate
Translators:

Adam Magnier               French
Adrià García-Alzórriz      Catalan
Adrià García-Alzórriz      Spanish
Ajeje Brazorf              Sardinian
Alberto Moshpirit          Spanish
Dominik george             French
Dominik george             German
Enol Puente                Asturian
Jean-Baptiste              French
M2ck                       French
Marcelo Santana            Portuguese (Brazil)
Massimiliano Caniparoli    Italian
Mladen Pejaković           Serbian
Nam Mai Hoang              Vietnamese
naofum                     Japanese
Nick Bishop                Greek
riotism                    Chinese (Hong Kong)
Sérgio Marques             Portuguese (Portugal)
tacsipacsi                 Hungarian
ultrapeer                  Turkish
Андрій Бандура             Ukrainian
Дмитрий Михирев            Russian
2016-01-14 22:56:44 +01:00
Daniel Martí
0e60886f14 Run optipng on new drawables 2016-01-11 01:49:58 +01:00
Daniel Martí
bb1c551cb8 Merge branch 'master' into 'master'
Add author/email/license display capabilities to app. (Closes: #532)

![Screenshot_2016-01-06-20-10-18](/uploads/c15a5e59624113e9e83914914cd9c6a9/Screenshot_2016-01-06-20-10-18.png)
![Screenshot_2016-01-06-20-18-31](/uploads/0f6c15b6c0646a3336460a91a2a04e42/Screenshot_2016-01-06-20-18-31.png)


See merge request !189
2016-01-09 13:45:13 +00:00
Daniel Martí
06c7bb8286 Remove unused strings
These stopped being used after the search and repo update makeovers.
2016-01-06 18:07:43 +01:00
F-Droid Translatebot
26e0708573 Pull translation updates from Weblate
Translators:

Ajeje Brazorf                               Sardinian
Alberto Moshpirit                           Spanish
hrskrs                                      Albanian
Kalle Lampila                               Finnish
Mladen Pejaković                            Serbian
Persian: fix format strings Daniel Martí
Tobias Bannert                              German
2016-01-06 18:04:18 +01:00
Daniel Martí
51cf2db6ac Persian: fix format strings
Someone introduced lots of %I and and other weird format issues like %!.
Fixed all of them.

We normally catch these via Android's lint, but it appears that %I went
under its radar.

Fixes #530.
2016-01-06 17:58:57 +01:00
Dominik George
0df829034c
Add author/email/license display capabilities to app. (Closes: #532) 2016-01-05 13:18:38 +01:00
F-Droid Translatebot
e1510d2329 Pull translation updates from Weblate
Translators:

Adrià García-Alzórriz      Catalan
ageru                      French
Ajeje Brazorf              Sardinian
Allan Nordhøy              Norwegian Bokmål
Enol Puente                Asturian
Erwin Scheuch-Heilig       German
Karola Marky               Japanese
Ldm Public                 French
Marcelo Santana            Portuguese (Brazil)
Massimiliano Caniparoli    Italian
naofum                     Japanese
Reiner Herrmann            German
riotism                    Chinese (Hong Kong)
Tobias Bannert             German
ultrapeer                  Turkish
2016-01-05 09:03:37 +01:00
Peter Serwylo
a99767f3a6 Remove icon, add scroll view to crash report dialog.
Scroll view helps with smaller screens. Alert dialog icons are not
part of the material design spec so that was removed.
2016-01-03 15:48:44 +11:00
Peter Serwylo
49d01e0ca3 Use custom layout for ACRA report dialog, not default one.
Styling the default dialog was difficult and it doesn't obey some
of the guidelines provided by the Android design docs:

 https://www.google.com/design/spec/components/dialogs.html#dialogs-specs
 (see "Content Guidelines")

This change introduces a custom dialog extending the base ACRA reporting
activity. Specifically, it introduces a padding of 24dp around the dialog
contents.
2016-01-02 13:42:57 +11:00
Daniel Martí
6a0c230493 Add NonFreeAssets anti-feature 2015-12-29 12:36:15 +01:00
F-Droid Translatebot
1b3080c07d Pull translation updates from Weblate
Translators:

Adrià García-Alzórriz    Catalan
Ajeje Brazorf            Sardinian
Alberto Moshpirit        Spanish
Allan Nordhøy            Norwegian Bokmål
Enol Puente              Asturian
Kalle Lampila            Finnish
Marcelo Santana          Portuguese (Brazil)
Mladen Pejaković         Serbian
naofum                   Japanese
Tobias Bannert           German
Андрій Бандура           Ukrainian
Саша Петровић            Serbian
2015-12-29 12:03:44 +01:00
Daniel Martí
b22466ee66 Add opt-in crash reporting via ACRA
Fixes #398.
2015-12-26 23:35:48 +01:00
Peter Serwylo
c36529f445 Renaming id -> packageName in local variables/method args/comments/etc. 2015-12-26 15:12:58 +11:00
Daniel Martí
9baad0fc3e Run remove-unused-trans 2015-12-24 17:25:36 +01:00
F-Droid Translatebot
2c2b826640 Pull translation updates from Weblate
Translators:

Enol Puente                Asturian
Martin Lacina              Slovak
Massimiliano Caniparoli    Italian
2015-12-24 17:18:23 +01:00
Daniel Martí
4bbd0d83ef Add new language zh-rTW to settings list 2015-12-21 10:14:10 +01:00
F-Droid Translatebot
753e983339 Pull translation updates from Weblate
Translators:

Ajeje Brazorf              Sardinian
Green Lunar                Hebrew
Ldm Public                 French
lucnsy                     Chinese (China)
Massimiliano Caniparoli    Italian
Mladen Pejaković           Serbian
naofum                     Japanese
Nordlenningen              Norwegian Bokmål
Sérgio Marques             Portuguese (Portugal)
Tobias Bannert             German
Vdragon, V字龍            Chinese (Taiwan)
2015-12-21 09:58:45 +01:00
relan
8b89b52d2b Show appropriate message when search results are empty
Closes #512.
2015-12-19 15:35:15 +03:00
Peter Serwylo
1a5b60f654 Merge branch 'fix-323--improved-search' into 'master'
Search as the user types

Fixes #323.

This does away with the separate `SearchResult` and instead applies the search to the currently viewed tab on the main screen (Available, Installed, Updates). When filtering the Available list, it filters the currently selected category.

Note however that there are still times when the old style `SearchDialog` will be shown over the top of the action bar rather than the `SearchView` within the action bar. These times include:
 * When a user with a hardware keyboard starts typing from the main screen.
 * On older devices with a "search" hardware button.
 * Probably some other cases (I think when there is not enough screen real estate, but haven't seen that happen).

In cases where this dialog is shown, filtering the lists as you type does not seem to be an option. I tried to figure out how to do that, but failed. If someone else figures it out, that would be great. However, when the search is submitted, it will hide the `SearchDialog` and populate the `SearchView`, focus it, and apply the search appropriately.

There is a script in the `F-Droid/tools/` subdirectory which will consecutively send various intents to F-Droid relating to search. This includes Play, market, Amazon search links. For good measure, I also made it send intents to do with viewing app details. This should probably be made into a proper instrumented test at some point, but I didn't have the time to figure out how to do that. Maybe a project for future @pserwylo.

One unknown is the performance implications. There is no problems on my Nexus 4 with Android 5.0. My Chinese/ebay/$30/Android 2.3.4 device seems good enough too.

See merge request !177
2015-12-16 11:50:30 +00:00
Daniel Martí
00e832fbe3 Don't fetch language names from the system
The system's are sometimes wrong, e.g. unexpected names. This also helps
our support across different Android versions without having to worry as
much about the system's language support.

Fixes #503.
2015-12-16 12:03:32 +01:00
Daniel Martí
ef4221400b Fix format in values-nl count 2015-12-16 11:43:13 +01:00
F-Droid Translatebot
0f6e88d1a3 Pull translation updates from Weblate
Translators:

Dario Tordoni      Italian
Elia Argentieri    Italian
Enol Puente        Asturian
halcyonest         Korean
M2ck               French
relan              Russian
Tobias Bannert     German
Дмитрий Михирев    Russian
2015-12-16 11:41:32 +01:00
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