3144 Commits

Author SHA1 Message Date
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í
5179e032db Fix NewApi bug introduced in 8e193cec 2016-02-26 14:39:02 +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
Hans-Christoph Steiner
d1b758147b Merge branch 'lint-errors' into 'master'
Fix first chunk of lint errors

These are easy, but numerous.

See merge request !212
2016-02-25 19:34:08 +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
Hans-Christoph Steiner
153a6bdbe7 Merge branch 'tools' into 'master'
Pull translation updates and make CI check more stuff via tools/



See merge request !210
2016-02-25 16:31:29 +00:00
Daniel Martí
99f930663d CI: Also check language list and string formats 2016-02-25 14:25:45 +00:00
Daniel Martí
54c4714b9d Fix string format issues 2016-02-25 13:56:06 +00:00
Daniel Martí
6b9d6b6be5 Add a py script to check for bad string formats
Lint finds these, but it's very slow and currently we're not taking lint
errors as fatal. So for now this script will be useful, as nearly every
time I pull from weblate there are at least a couple of these.
2016-02-25 13:56:01 +00:00
Daniel Martí
d130a2f634 Merge branch 'ci-patches' into 'master'
Small CI patches



See merge request !209
2016-02-25 13:51:50 +00:00
Daniel Martí
7e86dc5e48 Convert existing py tools to python3 2016-02-25 13:39:39 +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
Daniel Martí
86ecfa217f CI: Simplify sdk unboxing 2016-02-24 20:31:30 +00:00
Daniel Martí
1153a93425 CI: Remove kill line
Hans correctly pointed out all this does is try to kill the echo. The
AVD should be taken down along with the docker runner.
2016-02-24 20:27:20 +00:00
Daniel Martí
5cca8102d7 Update commons-io test dep to 2.4
Ran the tests locally, all still pass.
2016-02-22 18:47:25 +01:00
Daniel Martí
9fe6545654 Update ACRA to 4.8.2 2016-02-22 18:45:21 +01:00
Peter Serwylo
1bae2b0132 Merge branch 'checkstyle-more' into 'master'
Checkstyle: require braces, consistent constant names



See merge request !207
2016-02-21 01:40:03 +00:00
Daniel Martí
17c731ef1d checkstyle: obey ConstantName 2016-02-17 15:59:04 +00:00
Daniel Martí
a6b804e93a checkstyle: obey NeedBraces on multi-line stmts
We still allow them in single-line statements, like:

	if (foo) bar;
	for (int i : ints) bar;

Everything else should use braces to help readability and avoid silly
human mistakes that might result in bugs.

These changes were completely automated via a python script.
2016-02-17 12:04:36 +00:00
Daniel Martí
ea31ed3079 gradlew: add zip sha256 2016-02-16 20:27:50 +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
Peter Serwylo
e892d55b91 Merge branch 'search-clear-focus' into 'master'
Search: clear focus when enter/return is pressed

Fixes #572.

Assigning to @pserwylo since he wrote the current search widget stuff.

See merge request !206
2016-02-16 11:06:21 +00:00
Daniel Martí
e066ed04dc Search: clear focus when enter/return is pressed
Fixes #572.
2016-02-15 16:47:25 +00:00
Daniel Martí
5e619a8117 README: Point to gradlew 2016-02-15 16:35:39 +00:00
Daniel Martí
ddda82509c Bump gradle to 2.11 2016-02-15 16:34:41 +00:00
Daniel Martí
7471fed31c CI: Use gradlew 2016-02-15 16:34:41 +00:00
Daniel Martí
714edfb456 Add gradle wrapper 2016-02-15 16:30:40 +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
Daniel Martí
80d8f9f30b Sync changelog with stable branch 2016-02-14 14:56:56 +00:00
Peter Serwylo
88b4e1ff31 Merge branch 'fix-554' into 'master'
Work around dead activity issue in AppDetails

It seems like install() sometimes runs when the AppDetails activity is
finished or finishing. This results in the windows (dialogs) failing to
show, and a BadTokenException to fire:

    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@d6e3570 is not valid; is your activity running?

This seems to be the culprit:

    at org.fdroid.fdroid.AppDetails.install(AppDetails.java:840)
    at org.fdroid.fdroid.AppDetails$AppDetailsListFragment.install(AppDetails.java:1657)
    at org.fdroid.fdroid.AppDetails$AppDetailsListFragment.onListItemClick(AppDetails.java:1721)

Apparently, you can check whether an activity/context is being finished:

https://stackoverflow.com/questions/7811993/error-binderproxy45d459c0-is-not-valid-is-your-activity-running

I cannot reproduce this issue, thus can't say whether this fixes it or
not. Either way, it can't hurt to try. This can be reverted if we see
ACRA reports of this in the future, and the issue reopened.

Fixes #565.

See merge request !204
2016-02-13 21:49:22 +00:00
Hans-Christoph Steiner
f3e5f2adcc Merge branch 'fix-wifistatechange-npe' into 'master'
WifiStateChangeService: Avoid DhcpInfo NPE

Fixes #569.

See merge request !205
2016-02-12 15:15:16 +00:00
Daniel Martí
f6724413b0 WifiStateChangeService: Avoid DhcpInfo NPE
Fixes #569.
2016-02-12 13:04:28 +00:00
Daniel Martí
89c53bbd5e Bump gradle plugin to 1.5.0 2016-02-11 12:39:48 +00:00
Daniel Martí
1a1ece16cf Work around dead activity issue in AppDetails
It seems like install() sometimes runs when the AppDetails activity is
finished or finishing. This results in the windows (dialogs) failing to
show, and a BadTokenException to fire:

    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@d6e3570 is not valid; is your activity running?

This seems to be the culprit:

    at org.fdroid.fdroid.AppDetails.install(AppDetails.java:840)
    at org.fdroid.fdroid.AppDetails$AppDetailsListFragment.install(AppDetails.java:1657)
    at org.fdroid.fdroid.AppDetails$AppDetailsListFragment.onListItemClick(AppDetails.java:1721)

Apparently, you can check whether an activity/context is being finished:

https://stackoverflow.com/questions/7811993/error-binderproxy45d459c0-is-not-valid-is-your-activity-running

I cannot reproduce this issue, thus can't say whether this fixes it or
not. Either way, it can't hurt to try. This can be reverted if we see
ACRA reports of this in the future, and the issue reopened.

Fixes #565.
2016-02-09 20:48:42 +00:00
Daniel Martí
9195e3c614 Bump to 0.99-alpha1 v0.99-alpha1 2016-02-09 16:04:29 +00:00
Daniel Martí
044bf0b2f8 CHANGELOG: Update with latest fixes 2016-02-09 16:04:29 +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
Daniel Martí
401a1d473d Drop unnecessary elses after returns 2016-02-09 15:59:47 +00:00
Daniel Martí
9997b0f448 Merge branch 'fix-555--content-provider-invalid-uri' into 'master'
Fix 555  content provider invalid uri

Was not correctly encoding "/" characters when searching. This caused the Uri used by the Content Providers to include a slash, which makes it look like a separate segment of the path which was wrong. Now correctly encodes "/" characters. Also noticed one other place incorrectly encoding characters, where they would've been double encoded when added as query parameters to a Uri.

See merge request !203
2016-02-09 15:55:38 +00:00
Peter Serwylo
c0d752cce3 Merge branch 'reactivex--swap--peer-finders' into 'master'
Refactor swap "peer finders" to use ReactiveX

*NOTE: This includes the commit specified by !197.*

In the old code, there is a _lot_ of procedual style "Is this peer finder running, if so, do this". In addition, the choice to do things on background threads or not is a little ad-hoc. Finally, the `SwapService` needs to know about both bluetooth and wifi peer finders, whereas really they are both only there to emit "Peers", regardless of the type.

As such, some improvements in this change are:
 * The choice to run peer finding on a background thread is made once, at a higher level when starting the peer finder.
 * No longer does the UI code ask "Am I searching for peers". It instead waits to be told whether it is or isn't.
 * The addition of new types of peers in the future is the job of the Peer finder itself. It quietly aggregates all of the Peer Finders it knows about into a single observable that emits different types of peers.

This code doesn't fix any particular issue, but rather it is about making the entire swap workflow easier to reason about. I plan on migrating more of this workflow to this functional style in the future, and hopefully that will have benefits in terms of stability and code understanding.

See merge request !198
2016-02-07 00:08:03 +00:00
Peter Serwylo
d939e9dac9 Minor fixes due to CR. 2016-02-07 10:39:01 +11:00
Daniel Martí
416c7aff82 Update ACRA to 4.8.1
Fixes nasty crash on android-19 and earlier.
2016-02-06 23:35:43 +00:00
Daniel Martí
d063aa3a08 CHANGELOG: Add Android.mk fix
Also fix the 0.98 date to be the same as the one in the stable-v0.98
branch.
2016-02-06 13:47:07 +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
Daniel Martí
6dbcf95ae7 CHANGELOG: Add more crash fixes 2016-02-06 12:07:35 +00:00