1008 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
2e2a6bd419 show Toast when file type cannot be installed
This is just a placeholder until we implement proper "installing" for
non-APK files.

!504
#982
2017-05-02 22:00:48 +02:00
Hans-Christoph Steiner
a12d8e0c6d remove comment from <plurals>, its finding its way into translations 2017-05-02 21:53:11 +02:00
Hans-Christoph Steiner
7e12ae45e3 remove odd quoting from strings 2017-05-02 21:53:11 +02:00
Hans-Christoph Steiner
a3c5e9631b 0.103 weblate import 2017-05-02 19:50:22 +00:00
Hans-Christoph Steiner
6c64e1943a fix formats in Persian translation 2017-05-01 23:40:41 +02:00
Danial Behzadi
3e7b549f48 Translated using Weblate (Persian)
Currently translated at 100.0% (386 of 386 strings)
2017-05-01 23:32:16 +02:00
Hans-Christoph Steiner
de1cc566a1 show license in the links section
This makes the license a link to the spdx.org page for the app's
license.  I think this is an improvement over the way the license was
displayed before 0.103 since it provides a direct link to the actual
text of the license.

The license icon is a modified version of the public domain icon:
https://commons.wikimedia.org/wiki/File:Cc-sa_white.svg

closes #960
2017-05-01 23:31:14 +02:00
Hans-Christoph Steiner
53417955c9 weblate import for 0.103-alpha4 2017-05-01 19:30:22 +00:00
Hans-Christoph Steiner
d946678568 remove redundant "About" header in Settings view 2017-04-28 10:41:30 +02:00
Hans-Christoph Steiner
add570ab4b hide Languages pref on >= android-24
Android 24 and later provides tons of languages, and a way to rank
multiple languages instead of choosing one.  The Languages pref is a
big hack and can be problematic, so its better to disable it when its
not needed.  This will make it so it is no longer possible to set
F-Droid to a language that the system does not support.

#943
2017-04-28 10:41:30 +02:00
Hans-Christoph Steiner
f8c9d7ec8e Merge branch '0.103-alpha3--ui-fixes' into 'master'
0.103-alpha3  UI fixes

Closes #981, #967, and #965

See merge request !490
2017-04-26 10:34:02 +00:00
Peter Serwylo
74795d2f7a Don't use attr for color value in drawables.
According to the following this is not supported:

 * http://stackoverflow.com/a/13471695/2391921

This uses the approach in that SO answer, by extracting the attribute to
instead point at a drawable, and have one drawable for each theme.

Fixes #979.
2017-04-26 10:06:00 +10:00
Peter Serwylo
4b70d81e5c Make install/uninstall/run/upgrade buttons not overlap last updated text
Instead of showing them below the icon, it now puts the icon + name +
author + last updated into a single layout which can grow if the app
name or author wraps to a second line. The buttons are now below this
additional layout.
2017-04-26 08:28:25 +10:00
Peter Serwylo
e2c82d2943 Accessibility tweaks in app details.
* Correctly read out "Cancel download"
 * Allow users to hear download progress correctly.
2017-04-26 08:28:24 +10:00
Stephen Michel
2272e441c6 lighten app card background in category view for #907 2017-04-25 15:05:19 -04:00
Chirayu Desai
9f50bef04f More dark more fixes
Fixes some leftover items missed in the previous major update.
* Donate view in AppDetails
* What's new view in AppDetails
* The search view
2017-04-21 01:39:39 +05:30
Hans-Christoph Steiner
3a194026fa test all formats in all languages
We've had a number of crashes due to bad formats in various
translated strings.  This test runs through all of the translated
strings and tests them with the same format values that the
source strings expect.  This is to ensure that the formats in the
translations are correct in number and in type (e.g. {@code s} or
{@code s}.  It reads the source formats and then builds {@code
formats} to represent the position and type of the formats.  Then
it runs through all of the translations with formats of the
correct number and type.

I couldn't get the Resources stuff working in Robolectric, so I
made this an emulator test.

The change to the Swedish translation included in this commit are
fixes for issues that these tests found.

closes #923
2017-04-18 21:26:58 +02:00
Hans-Christoph Steiner
4bb7050725 add Video to Links section of App Details 2017-04-18 21:26:58 +02: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
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
4920b5f75f Weblate fix sync for 0.103 2017-04-18 15:16:35 +00:00
Hans-Christoph Steiner
0119138f38 Weblate pull for 0.103-alpha3 2017-04-17 22:59:48 +00:00
Peter Serwylo
2fbfcb66b0 Make categories read out correctly by screenreader. 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
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
Hans-Christoph Steiner
8cb277e90d AppDetails2: add missing paddingEnd to match paddingRight 2017-04-14 01:09:33 +02: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
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
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
Hans-Christoph Steiner
c1af914df8 Weblate 2017-04-07 17:25:48 +00: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
019964387a get language names from system, instead of hard coded list
closes #858
2017-04-07 14:50:53 +02: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
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
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
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
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
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