4383 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
0119138f38 Weblate pull for 0.103-alpha3 2017-04-17 22:59:48 +00: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
Peter Serwylo
9521b9a72c Add guard contidion to prevent notifying when inappropriate.
Although the adapter tries to keep in sync with the app status update
manager, there may be times when this is not successful. In such
circumstances, it seems safe to just guard against invalid situations,
rather than trying to assert an error or fall over.

Fixes #922.
2017-04-07 22:40:29 +10:00
Peter Serwylo
42965701a3 Show "Run" button next to a successfully installed app.
There was some confusion in the user tests about how to launch an app
once it was installed. Hopefully this small change goes towards fixing
some of that confusion. Instead of just showing "X installed
successfully" in the app list, it now shows a "Run" button next to it.
2017-04-07 22:40:29 +10:00
Peter Serwylo
f830d4745d Replace mysterious tick icon with "Update" or "Install" button in main list of apps.
There is plenty of real estate in this main app list, and the tick
causes confusion as identified in the user tests.
2017-04-07 22:40:29 +10:00
Peter Serwylo
34c741f835 Clear up confusion around "Tick" icon when updating app.
When navigating to Updates -> Show Apps and then downloading an item, it
shows the download progress inline for that item. After this is
complete, it then shows a tick icon next to the item. The long term goal
should be to remove the list item from under "Show Apps" so that it is
only shown at the top of the "Updates" view. However this will require
more work. In the meantime, we can alleviate some confusion by replacing
the "Tick" icon with a button that says "Update" (like the other buttons
in the Update view).
2017-04-07 22:40:29 +10:00
Peter Serwylo
1f035a9696 Don't re-use existing pending intents.
When dismissing an "X installed successfully" intent, it should also
dismiss the relevant item from the "Updates" screen. This was not
happening. Upon investigation, I noticed that when I dismissed a
notification, it was passing through the Apk which I installed over a
day ago. This is because it was reusing a previous pending intent rather
than creating a new one.
2017-04-07 22:40:29 +10:00
Peter Serwylo
05d6929eb6 Remove unused preference "Update History".
Now that we've moved the first screen to "Latest", we always want to do
our best to show something there. This preference is pretty redundant in
light of this.
2017-04-07 22:08:29 +10:00
Peter Serwylo
d41b0d330f Only show "New" next to apps added in the last two weeks.
Previously, the definition of "New" was whether or not the added and
last updated dates were the same. This made sense, because we only
showed apps from the past few weeks (depending on preferences) as new.

Now that we show up to 200 apps in the first screen, regardless of age,
this check is no longer helpful.
2017-04-07 22:02:16 +10:00
Peter Serwylo
c5051e8813 Extract "days since date" to Utils 2017-04-07 22:02:16 +10:00
Peter Serwylo
3b9f841117 Try to always show something in "Latest"
It seems pointless to only restrict "Latest" to items within the last X
days. When you only have the GP repo enabled, or other repos with less
apps that are updated less frequently than the main repo, this screen
always ends up empty. This change shows the last 200 updated items
instead of those updated in the last X days.
2017-04-07 22:02:16 +10:00
Peter Serwylo
ab5ea39f7c Show empty state feedback for latest + categories
The text is more comprehensive on the main screen than on categories,
because this is the view that all users will see when they first open
F-Droid.

Fixes #879.
2017-04-07 22:02:14 +10:00
Peter Serwylo
510ec5f7c7 Adding ability to query last repo update and number of repos.
This will be used to improve the empty state handling of the main list
of latest apps.
2017-04-07 21:58:30 +10:00
Peter Serwylo
d83c15d0d4 Show "Updating repositories" banner in main UI.
Previously this was only shown in the notifications.
This does not show the full progress of the update, but at least it
provides a rudimentary level of feedback. In the future it can be
modified to show more substantial feedback if required.
2017-04-07 21:56:42 +10:00
Hans-Christoph Steiner
01f27ac404 Merge branch 'weblate' into 'master'
weblate pull for 0.103-alpha2

See merge request !467
2017-04-07 10:05:05 +00:00
Hans-Christoph Steiner
830fd5e375 weblate pull for 0.103-alpha2 2017-04-07 10:05:04 +00:00
Hans-Christoph Steiner
1054d57b02 Merge branch 'new-ui--more-fixes' into 'master'
More misc UI fixes, mainly for older devices.

Closes #906 and #866

See merge request !465
2017-04-07 07:47:42 +00:00
Hans-Christoph Steiner
a710eeef3a Merge branch 'fix-913--vector-issues' into 'master'
Force the build tools to generate .pngs for each vector.

Closes #913

See merge request !466
2017-04-07 07:41:37 +00:00
Hans-Christoph Steiner
8c2d922019 Merge branch 'remove-old-ui-dead-code' into 'master'
Remove old ui dead code

See merge request !456
2017-04-07 07:37:39 +00:00
Peter Serwylo
9be1936e03 Correctly mirror the "Back" button on RTL locales.
Previously depended on the `autoMirror` attribute, but that is not
supported when build-tools generates .pngs for us.
2017-04-07 15:56:20 +10:00
Peter Serwylo
481b96ef17 Fix misc lint issues 2017-04-07 15:56:20 +10:00
Peter Serwylo
432eee0f83 Force the build tools to generate .pngs for each vector.
This results in a slightly larger apk (e.g. 500KiB), but it reduces the
scope for bugs greatly. We still get all the benefits of only having to
maintain a single density-independent vector (rather than several
density dependent PNGs and all the work that involves).

The class of bugs that it solves is that there are several places where
vectors cannot be used, and you wont notice when developing on a device
newer than 5.0. For example, notification icons, `TextView`
and its `android:drawableStart` attribute.

Fixes #913.
2017-04-07 15:56:16 +10:00