2742 Commits

Author SHA1 Message Date
Daniel Martí
0bb921adad Optimize imports 2015-10-23 12:55:09 +02:00
Daniel Martí
9475d1634c AppDetails: Remove another extra getPackageManager() 2015-10-23 12:44:31 +02:00
Daniel Martí
da6fd323fd Remove unnecessary initializers
These fields are initialized to their zero values (0, null, false) so doing
the same over in the constructor is unnecessary.
2015-10-23 12:41:05 +02:00
Daniel Martí
56d9ccd737 Deduplicate getApp() getter madness
Not that it's any more efficient, but it's surely more readable.
2015-10-23 12:35:05 +02:00
Daniel Martí
8b114326f5 AppDetails: Remove unnecessary Signature
Mainly since in the future we'll only have the hash of it, so avoid depending
on the object.
2015-10-23 12:31:05 +02:00
Daniel Martí
960b67e950 AppDetails: Remove extra getter 2015-10-23 12:25:20 +02:00
Daniel Martí
d32c866bb4 Bump to 0.97-alpha7 v0.97-alpha7 2015-10-23 11:01:04 +02:00
F-Droid Translatebot
04e548aec4 Pull translation updates from Weblate
Translators:

Ajeje Brazorf                     Sardinian
Allan Nordhøy                     Norwegian Bokmål
Daniel Martí                      Catalan
Luiz Wagner Tavares Nascimento    Italian
Marcelo Santana                   Portuguese (Brazil)
relan                             Russian
2015-10-23 10:59:58 +02:00
Daniel Martí
35acb141c9 Ignore upstreamVercode if it doesn't work
If it doesn't result in any version being marked as suggested, e.g. because it
is higher than 0 but lower than any available version, we end up with a NULL
suggestedVercode.

Run the Latest() algorithm after the Upstream() one, and have it pick up those
cases too by adding "OR suggestedVercode IS NULL". This way, we treat invalid
upstreamVercode values as if they were NULL.

Also some cleanup of comments.

Fixes #371.
2015-10-22 16:58:38 +02:00
Daniel Martí
fb3b0a0281 Comment indenting fix 2015-10-22 00:25:19 +02:00
Daniel Martí
adca9a051b Checkstyle fixes 2015-10-22 00:13:17 +02:00
Daniel Martí
30b6d6df90 Don't hardcode preference keys 2015-10-22 00:10:18 +02:00
Daniel Martí
2ceeda40b7 Make language change stick properly
As seen in https://stackoverflow.com/questions/2264874/changing-locale-within-the-app-itself.

Fixes #458.
2015-10-22 00:07:36 +02:00
Daniel Martí
8307015d8d Don't use DownloadManager if it was disabled
Fixes #442.
2015-10-21 23:29:45 +02:00
Daniel Martí
3311043e80 Merge branch 'materialize-app-list' into 'master'
Materialize app list

Improve the look of app list items. Note that compact mode is removed because it does not make much sense, see the screenshots.

Before (default layout, compact layout):

![before](/uploads/6e9b4f0827c89e191257210178a09b41/before.png)
![before-compact](/uploads/d98f907405d28e292ccab3af9d910162/before-compact.png)

After:

![after](/uploads/d95fc34ab047934e78b1e92bfce915dc/after.png)
![after-rtl](/uploads/0129f19390e1501cbd2e45d6597b7db5/after-rtl.png)

Affects #471 and #467. Those bugs will still be relevant because there are other places with wrong padding and font style.


See merge request !157
2015-10-21 19:55:57 +00:00
relan
6797f51481 Make app list look more Material
Use recommended paddings, text sizes, colors, avoid bold font style.
See https://www.google.com/design/spec/components/lists.html
2015-10-21 22:25:52 +03:00
relan
a9457e30a6 Fix applistitem layout parameters resolution
See http://www.doubleencore.com/2013/05/layout-inflation-as-intended
2015-10-21 22:04:52 +03:00
relan
a962ba9523 Remove compact layout strings
They are unused now.
2015-10-21 22:04:52 +03:00
relan
71da35d3fd Remove compact layout setting
It's quite useless because it makes app list insignificantly smaller.
Besides, this contradicts the Material Design spec.
2015-10-21 22:04:52 +03:00
Daniel Martí
7bc2622b94 Sort apps by name ignoring case with locale
Fixes #475.
2015-10-21 17:15:56 +02:00
F-Droid Translatebot
cbb526d68b Pull translation updates from Weblate
Translators:

Ajeje Brazorf    Sardinian
Allan Nordhøy    Norwegian Bokmål
Enol Puente      Asturian
2015-10-21 16:55:10 +02:00
Daniel Martí
2191cba844 CONTRIBUTING: Clarify source strings changes 2015-10-21 16:53:00 +02:00
Daniel Martí
e8093a66f0 Replace preferences by settings in other strings 2015-10-20 23:40:57 +02:00
F-Droid Translatebot
70cb5cd94a Pull translation updates from Weblate
Translators:

ageru                French
agilob               Polish
Ajeje Brazorf        Sardinian
Alberto Moshpirit    Spanish
Enol Puente          Asturian
Green Lunar          Hebrew
2015-10-20 23:40:53 +02:00
Daniel Martí
1a60a7cfb7 Make remove-unused-trans remove empty strings
English is better than no text at all.
2015-10-19 09:49:14 +02:00
Daniel Martí
5b688d3c23 Rename Preferences to Settings
For consistency with Android and other apps.

Closes #464.
2015-10-19 09:48:05 +02:00
Daniel Martí
f349437334 Replace all tabs with spaces in string xml files
For consistency, and to keep weblate from adding even more tabs everywhere.
2015-10-19 09:35:57 +02:00
F-Droid Translatebot
9f7380691b Pull translation updates from Weblate
Translators:

ageru     French
Osoitz    Basque
Sylvie    Dutch
2015-10-19 09:27:27 +02:00
Daniel Martí
abf4528d02 Get rid of many tabs for consistency 2015-10-19 09:23:35 +02:00
Daniel Martí
0b2aac253b Merge branch 'bump-appcompat-v7' into 'master'
Bump appcompat-v7 library to 22.2.1

This is the proper fix for #356.

See merge request !156
2015-10-19 06:54:48 +00:00
relan
b1a1bedc68 Bump support appcompat-v7 library to 22.2.1
Let it be the same version as other support libraries.
2015-10-19 07:56:50 +03:00
relan
68de2356c5 Fix default textColor for TextView
TextView respects textViewStyle since appcompat-v7:22.2:

     public AppCompatTextView(Context context, AttributeSet attrs) {
-        this(context, attrs, 0);
+        this(context, attrs, android.R.attr.textViewStyle);
     }

This change in appcompat-v7 breaks previous behaviour by applying
textColorSecondary to TextViews: text becomes grey after upgrading
appcompat-v7 to 22.2.

See https://code.google.com/p/android/issues/detail?id=170476
2015-10-19 07:56:41 +03:00
F-Droid Translatebot
8bf0b1df91 Pull translation updates from Weblate
Translators:

agilob             Polish
Marcelo Santana    Portuguese (Brazil)
Michal Čihař       Bulgarian
relan              Russian
Rubén Santos       Galician
2015-10-17 13:36:44 +02:00
Daniel Martí
41cfc67d4a Bump to 0.97-alpha6 v0.97-alpha6 2015-10-13 22:49:05 +02:00
F-Droid Translatebot
127be67c79 Pull translation updates from Weblate
Translators:

Alberto Moshpirit     Spanish
Laura Arjona Reina    Spanish
Marcelo Santana       Portuguese (Brazil)
moshpirit             Spanish
Sérgio Marques        Portuguese
Sérgio Marques        Portuguese (Portugal)
zmni                  Indonesian
2015-10-13 22:32:40 +02:00
Daniel Martí
dfe72b30ce gradle: debug is already debuggable 2015-10-13 22:30:02 +02:00
Daniel Martí
9586c159a3 Deduplicate gradle code 2015-10-13 22:28:55 +02:00
Daniel Martí
bbeef3cd8d Bump libsuperuser 2015-10-13 22:17:57 +02:00
Daniel Martí
ed978ba785 Downloader: Don't use DownloadManager if null
If getSystemService(Context.DOWNLOAD_SERVICE) returns null, we should not go
ahead with using AsyncDownloaderFromAndroid. This would result in NPE and
crashes.

Fixes #442.
2015-10-12 13:02:32 +02:00
Daniel Martí
52e9e79fad README: Clarify that we now use Gradle 2.7 2015-10-12 12:48:54 +02:00
Daniel Martí
7b8f577fd4 Keep apk downloads from crashing on 2.2
Use a temporary quick fix for the crash until a better solution is in place.
This is explained in the TODO.

Fixes #448.
2015-10-12 12:45:27 +02:00
Daniel Martí
8d4e785185 Simplify a few elses
Mostly just dropping them after returns.
2015-10-12 12:37:39 +02:00
Daniel Martí
603a5b25e4 lint: disable LocaleFolder check 2015-10-11 01:43:08 +02:00
Daniel Martí
f1c3e5ee32 Add id to list of languages and add in link
As per #139.
2015-10-11 01:35:45 +02:00
F-Droid Translatebot
0f17901d9d Pull translation updates from Weblate
Translators:

agilob               Polish
AtomiKe              French
Ferenc Nagy          Hungarian
Mário Castanheira    Portuguese (Portugal)
Sérgio Marques       Portuguese (Portugal)
zmni                 Indonesian
2015-10-11 01:32:28 +02:00
Daniel Martí
65e8087211 CI: Run checkstyle 2015-10-09 17:05:36 +02:00
Daniel Martí
1e8bbbd1f9 checkstyle: Add curly checks 2015-10-09 11:40:50 +02:00
Daniel Martí
8396eba8d9 checkstyle: Always wrap commas 2015-10-09 11:27:24 +02:00
Daniel Martí
b60afa2dc0 checkstyle: Also check test sources 2015-10-09 11:19:41 +02:00
Daniel Martí
6b573db3f4 checkstyle: Add more checks we already obey 2015-10-09 11:06:59 +02:00