4403 Commits

Author SHA1 Message Date
Chirayu Desai
db4aa3b519 Installer: Use content URI on API >= 24 for DefaultInstaller fallback
* When there's a permission mismatch (#951, #890), the fallback
  DefaultInstaller is invoked, which enforces file and content schemes
  for API < 24 and >= 24 respectively.
* Use content URI in that case, which allows the fallback to work.
2017-04-18 23:50:05 +05:30
Hans-Christoph Steiner
d844541f6e Merge branch 'big-translation-cleanup' into 'master'
Big translation cleanup

See merge request !481
2017-04-18 17:58:46 +00:00
Hans-Christoph Steiner
15d11f6d44 reformat all strings.xml using Android Studio 2.2.3 defaults
This should make dealing with merge conflicts a lot easier, since there
should be less conflicts on things like tabs vs spaces for indenting.
2017-04-18 19:29:50 +02:00
Hans-Christoph Steiner
dfff412dfe remove odd quoting from button_view_all_apps_in_category 2017-04-18 19:29:50 +02:00
Hans-Christoph Steiner
de15f7d5bb remove <plurals> with dev help string in it 2017-04-18 19:29:50 +02:00
Hans-Christoph Steiner
164dc2740c purge translations to deleted 'my_apps_header_number_of_updateable' 2017-04-18 19:29:50 +02:00
Peter Serwylo
b7ef0bd4e1 Also check for misformated plurals, not just regular strings.
The script checks for `<string/>` elements which have misformated
arguments in them. It Now also checks for `<plural><item /></plural>`
elements too.

closes !472
2017-04-18 19:29:50 +02:00
Hans-Christoph Steiner
cfabd2a2c3 properly handle <plurals>
<plurals> handles the grammar needed for numbers/quantities in various
languages.  Like in a number of slavic languages, numbers ending in 0,
1 or others have separate grammar.  In English, there is just 1 and
then all the rest (0 days, 2 days, 3 days, etc). <plurals> does not
handle multiple strings for different quantities, like having a
different string for each number case.  For that, we have to do it in
Java and have multiple <strings>

!472
2017-04-18 19:29:50 +02:00
Hans-Christoph Steiner
77e3d6a6f1 Merge branch 'even-even-more-ui-fixes' into 'master'
More misc UI fixes for 0.103

Closes #949, #937, and #927

See merge request !477
2017-04-18 17:28:35 +00:00
Hans-Christoph Steiner
e9cb347642 gitlab-ci: switch to current 'client-latest' image tag
'client' is no longer generated.
2017-04-18 19:22:29 +02:00
Hans-Christoph Steiner
6fae06375e Merge branch 'weblate' into 'master'
Weblate fix sync for 0.10.3

See merge request !479
2017-04-18 15:16:37 +00:00
Hans-Christoph Steiner
4920b5f75f Weblate fix sync for 0.103 2017-04-18 15:16:35 +00:00
Hans-Christoph Steiner
143e5ccc74 Merge branch 'weblate' into 'master'
Weblate pull for 0.103-alpha3

See merge request !476
2017-04-17 22:59:49 +00:00
Hans-Christoph Steiner
0119138f38 Weblate pull for 0.103-alpha3 2017-04-17 22:59:48 +00:00
Peter Serwylo
131eece46c Fix issue with some cards not displaying in "Latest" view.
But in constraint layout which was fixed in 1.0.2.

Fixes #949.
2017-04-17 17:32:14 +10:00
Peter Serwylo
2fbfcb66b0 Make categories read out correctly by screenreader. 2017-04-17 17:31:32 +10:00
Peter Serwylo
93e39d895c Fix for API 15- having really busted navigation 2017-04-17 17:31:32 +10:00
Peter Serwylo
17ad6167a3 Fix broken padding in AppDetails2 on older devices.
Right + Left in addition to End + Start for support on older devices.
2017-04-17 17:31:32 +10:00
Peter Serwylo
6c12707720 Update AppDetails buttons after upgrading app to latest version.
Prior to this, it would only update the "Uninstall"/"Run"/"Upgrade"
buttons after a fresh install, or an uninstall.

This change is a bit more liberal in how often we try to update the
view, due to a race condition with PackageManager and AppDetails2.
AppDetails2 listens for InstalledAppProviderService in onResume, but
sometimes that is too late (the notification has already fired).
2017-04-17 17:31:32 +10:00
Peter Serwylo
a9b2ac9388 Don't clip the shadows underneath app details buttons.
Minor UI quirk, it was cutting off the drop shadow for these buttons.
2017-04-17 17:31:32 +10:00
Peter Serwylo
3c1b66dcd1 Let buttons go all the way to the left, not just to the icon.
On languages with longer translations, there is not enough space to fit
the relevant translations on a single line of the button.

Fixes #937.
2017-04-17 17:31:32 +10:00
Peter Serwylo
c73a65656a Merge branch 'whatsnew-n-stuff' into 'master'
support new WhatsNew fields in index-v1 (+ l18n fixes)

Closes #910 and #941

See merge request !474
2017-04-17 06:32:04 +00:00
Hans-Christoph Steiner
97fd3f0bad support "What's New" and "Video" fields from index-v1
fdroidserver currently only supports a single WhatsNew field that
comes from the CurrentVersionCode of the app.  Google Play and
fastlane supply support a WhatsNew field per-release, but we don't use
that data anywhere, and implementing that in the data structures would
add a lot of complexity since Apk would then need to have its own
"localized" section like App does.

The "Video" field is just a URL pointing to a video.

closes #910
db-version/69
2017-04-14 01:31:33 +02:00
Hans-Christoph Steiner
656b3185b2 added Esperanto and Shqip back to the language chooser
I added Esperanto because someone asked, and Shqip since it is not
available in Android 5.1 and people who speak Shqip would be likely to
open the language menu to switch away from English, then they'd see
Shqip as an option.  This still won't take effect until those
languages are fully translated.

closes #941
2017-04-14 01:09:33 +02:00
Hans-Christoph Steiner
8cb277e90d AppDetails2: add missing paddingEnd to match paddingRight 2017-04-14 01:09:33 +02:00
Hans-Christoph Steiner
3121a106e0 fix "DefaultLocale: Implied default locale in case conversion"
The point here is to use the English work all lowercase, so make sure
that the English lowercasing rules are always active, regardless of
the system's locale.
2017-04-14 01:09:33 +02:00
Hans-Christoph Steiner
e6844a5f4f do not override original description with nulls
The original single language description gets stuck straight into
App.description by Jackson.  getLocalizedEntry() might return a null,
in which case it was overriding the original description.  This only
overrides the original description if there is actually a localized
description.
2017-04-14 01:09:33 +02:00
Hans-Christoph Steiner
a89323b183 Merge branch 'new-ui/dark-mode' into 'master'
Fixes for dark mode, needed after the UX Overhaul

Closes #907

See merge request !473
2017-04-13 16:11:44 +00:00
Chirayu Desai
c2685bf14e Fixes for dark mode, needed after the UX Overhaul
* Replace hardcoded color values with references to style.xml,
  which in turn has different values for light and dark theme.
* Force reload the activity to get the theme applied.

TODO:
* Swap uses it's own theme, need to figure out a way to
  handle that. Currently the main Nearby screen which you get
  to from the bottom navigation is ok, but anything after
  that is light / custom themed.
2017-04-13 19:34:18 +05:30
Hans-Christoph Steiner
46adf47fdf Merge branch 'even-more-ui-fixes' into 'master'
Even more ui fixes

Closes #931

See merge request !471
2017-04-11 21:07:02 +00:00
Hans-Christoph Steiner
ecaf2362f2 Revert "Merge branch 'replicant-fsdg-compliance' into 'master'"
This reverts merge request !452
2017-04-11 14:50:40 +00:00
Peter Serwylo
b9129e8a35 Provide feedback to user when installing previous version.
Given the only feedback available to the user that they initiated a
download once clicking the version from the list is up top, this scrolls
the recycler view to the top to show that feedback.

Also shows the selectable background when they touch the version list
items.
2017-04-11 15:37:42 +10:00
Peter Serwylo
6891752672 Added empty state text to updates/installed apps.
Both of these reuse the text that was used in 0.102.
2017-04-11 15:37:42 +10:00
Peter Serwylo
854b19eee6 Correct handling of localized metadata representing images.
Previously, it assumed that featureGraphic et al. were always present if
the localised entry was present. This is not the case, so we only return
a URL if we can actually find the entry we are looking for.
2017-04-11 15:37:42 +10:00
Peter Serwylo
3d7a4ef8dc Show F-Droid blue in feature image place when loading icons.
Prior to this it was black, which looked broken. This also ensures that
the blue is shown behind the dynamic colour when it is time to ease in
that colour.
2017-04-11 15:37:40 +10:00
Peter Serwylo
46da776c2c Fix first item in Latest not being clickable
It was clickable if you clicked anywhere on that item other than the
card (e.g. the background feature image).
2017-04-11 15:37:40 +10:00
Peter Serwylo
8e7096b2a8 Merge branch 'replicant-fsdg-compliance' into 'master'
Skip non-FSDG-compliant apps on Replicant during repo data parsing

See merge request !452
2017-04-10 22:30:47 +00:00
Hans-Christoph Steiner
16880c638c Bump to 0.103-alpha2 v0.103-alpha2 2017-04-07 19:27:03 +02:00
Hans-Christoph Steiner
cfd31e9086 Merge branch 'weblate' into 'master'
Weblate

See merge request !470
2017-04-07 17:25:51 +00:00
Hans-Christoph Steiner
c1af914df8 Weblate 2017-04-07 17:25:48 +00:00
Hans-Christoph Steiner
c43877eed1 demote lint ImpliedQuantity to warning
This is hitting a lot of plurals, causing the CI builds to fail.  But
unfortunately, its getting it wrong.  Its actually for a format in a string
like "Updated today" in languages like pt that need special cases for 0/1
items.  In this case, it makes no sense to say "Updated 0 days ago".
2017-04-07 19:09:19 +02:00
Hans-Christoph Steiner
78ecba646c Merge branch 'system-language-names' into 'master'
get language names from system, instead of hard coded list

Closes #908 and #858

See merge request !461
2017-04-07 16:51:56 +00:00
Hans-Christoph Steiner
49f7248d45 Merge branch 'improvements-to-update-workflow' into 'master'
Improvements to update workflow

Closes #922

See merge request !468
2017-04-07 16:46:50 +00:00
Hans-Christoph Steiner
eefb2eb8a6 Merge branch 'screenshot-placeholder' into 'master'
Use screenshot placeholder instead of app icon placeholder.

See merge request !469
2017-04-07 16:35:18 +00:00
Peter Serwylo
2353a4e82d Use screenshot placeholder instead of app icon placeholder. 2017-04-07 22:53:10 +10:00
Hans-Christoph Steiner
6d0bde716e fully replace language pref handling with Languages class
closes #908
2017-04-07 14:50:53 +02:00
Hans-Christoph Steiner
019964387a get language names from system, instead of hard coded list
closes #858
2017-04-07 14:50:53 +02:00
Hans-Christoph Steiner
7f261b339a add release checklist, to remember what all needs to happen
!460
admin#13
2017-04-07 14:50:53 +02:00
Hans-Christoph Steiner
9d2e981d5e add script to remove incomplete translations
closes #858
2017-04-07 14:50:53 +02:00
Hans-Christoph Steiner
60241f3ae4 Merge branch 'new-ui--empty-state-text' into 'master'
Feedback about empty lists

Closes #879

See merge request !463
2017-04-07 12:47:59 +00:00