4573 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
a0015cda32 correct method name: getLocalizedListEntry()
This gets the data, it does not set it.  And it matches the other
getLocalized*() methods.
2017-06-06 16:12:23 +02:00
Peter Serwylo
701d927e7a Merge branch 'dark-theme-color' into 'master'
Improved font color in dark theme

Closes #1029

See merge request !529
2017-06-05 04:25:18 +00:00
ByteHamster
f66781eac6 Improved font color in dark theme 2017-06-03 09:58:53 +02:00
Hans-Christoph Steiner
9967ed9923 Bump to 0.103.2 v0.103.2 2017-05-31 19:38:06 +02:00
Hans-Christoph Steiner
4fd84a57d0 update CHANGELOG for release 2017-05-31 19:38:06 +02:00
Hans-Christoph Steiner
37a2856a1d Merge branch 'translation-fixes-for-0.103.2' into 'master'
Translation fixes for 0.103.2

See merge request !528
2017-05-31 16:19:26 +00:00
Hans-Christoph Steiner
db120c0f1f lint: make UnusedResources an error
!520
2017-05-31 17:29:40 +02:00
Hans-Christoph Steiner
feeb8c17ad remove unused string: installDowngrade
If this is needed in the future, this commit can be reverted in git.
2017-05-31 12:31:11 +02:00
Hans-Christoph Steiner
76fca35c2e remove unused string: menu_send_apk_bt
If this is needed in the future, this commit can be reverted in git.
2017-05-31 12:31:10 +02:00
Hans-Christoph Steiner
f6c669783d remove unused string: empty_search_available_app_list
If this is needed in the future, this commit can be reverted in git.
2017-05-31 12:31:10 +02:00
Hans-Christoph Steiner
edc9941e8b make LocalizationTest log the troublesome string locale and key 2017-05-31 12:29:25 +02:00
Hans-Christoph Steiner
dc6eccc218 workaround Weblate bug for languages with no plurals
https://github.com/WeblateOrg/weblate/issues/520
2017-05-31 12:29:25 +02:00
Hans-Christoph Steiner
4621de34f8 Merge branch 'weblate' into 'master'
Weblate

See merge request !527
2017-05-31 09:50:29 +00:00
Hans-Christoph Steiner
793b62878b Weblate 2017-05-31 09:50:25 +00:00
Hans-Christoph Steiner
087e86b312 Merge branch 'fix-notifications' into 'master'
Fix notification problems

Closes #1013

See merge request !523
2017-05-31 09:09:08 +00:00
Hans-Christoph Steiner
d70d597d81 Merge branch 'delete-unused-resources' into 'master'
Delete unused resources

See merge request !520
2017-05-31 07:58:40 +00:00
Hans-Christoph Steiner
dfadffd65b Merge branch 'fix-1039--category-images' into 'master'
Fix missing category images.

Closes #1039

See merge request !526
2017-05-31 07:49:27 +00:00
Felix Ableitner
07cd5e82fc Remove unused resources 2017-05-31 12:22:47 +09:00
Peter Serwylo
f617402f32 Remove PendingDownload in favour of Downloading
The response to receiving PendingDownload was always a more specific
case of the Downloading event. By removing it, the code which was listening
for Downloading events is capable of doing everything that the PendingDownloading
listeners were doing.
2017-05-31 11:47:10 +10:00
Peter Serwylo
a656e8e133 Remove dead code.
Fixes #1013.
2017-05-31 11:47:10 +10:00
Peter Serwylo
b3ed64ddaf Simplify and clean up updates view logic.
Same as how AppDetails2 was recently cleaned up to depend more on
AppUpdateStatusManager.

In addition, it also removes items from the "X apps can be updated"
lower part of the "Updates" view when they are present in the upper half
(i.e. the half showing feedback about the current download/install
progress).
2017-05-31 11:47:10 +10:00
Peter Serwylo
2a9fefd54e Simplify logic in UpdatesAdapter.
No longer do we try to nicely maintain the state of the adapter in "Updates"
in order to notify the recycler view about changes to its underlying data.
Instead, we just rebuild the entire structure each time a new thing needs
to be shown/removed.

This means no more smooth scrolling to the relevant item after it is
changed, but it results in a far less buggy interface.
2017-05-31 11:47:10 +10:00
Peter Serwylo
b69587ca65 Make contract about nullable currentApp explicit.
This identified a couple of places where it needed to be guarded
against.
2017-05-31 11:47:10 +10:00
Peter Serwylo
7d1fac2729 Extract isDownloading check into method of status class.
This is also going to be used elsewhere.
2017-05-31 11:47:10 +10:00
Peter Serwylo
8e2a099e51 Make app status updates include parcelized version of status.
This means that we no longer need to receive an APK_URL and then
directly ask the status manager for the relevant status object.
This causes problems when consecutive updates happen in the same event
loop, e.g. download started + download complete. In this case, the
receiver will receive two events for the same app. When it asks for the
associated status object for the first (download started) event, it will
receive a status that says "download complete ready to install". This is
because the status object has already been updated by the second event.

Furthermore, the broadcast manager must receive a copy of the status
object, not the original object. This is because the broadcast manager
doesn't parcel the relevant extras until the end of the event loop. This
means that if the status is changed twice in one frame, then both
parcels will end up looking the same. By sending through a copy instead,
this ensures that any listener receives the statuses in the correct
order, rather than two parceled versions of the same status
notification.
2017-05-31 11:47:10 +10:00
Peter Serwylo
ee7055e118 Listen to AppUpdateStatusManager events instead of DownloadManager events.
Also, make sure to correctly update the app details view when te user
leaves then returns to the view. Prior to this, the user would need to
wait for a download event to be received. However even that was broken,
because the download listener was not being added correctly once the
user returned to the app details screen.
2017-05-31 11:47:10 +10:00
Peter Serwylo
be727ae7c0 Fix missing category images.
Even though the categoyr mage loader explicitly says not to cache
images on disk (because they are not coming from the network anyway),
UIL still uses the `FilenameGenerator` to come up with a disk cache name.

Because the file name generator takes the "path" of the URL being
downloaded, and the categories are loaded like "drawable://2134234",
there is no path. As such, the file name ends up being meaningless.

This results in the image loader testing for the existance of the file
on disk (even though we asked not to cache on disk), and then failing
with an IOException (that gets swallowed).

By providing a meaningful name from the file name generator, it now
works as expected.

Fixes #1039.
2017-05-31 09:27:29 +10:00
Hans-Christoph Steiner
7c0c5b2490 Merge branch 'weblate' into 'master'
Weblate

See merge request !525
2017-05-30 16:03:04 +00:00
Hans-Christoph Steiner
702cf2dec8 Weblate 2017-05-30 16:02:59 +00:00
Hans-Christoph Steiner
c5f5eb6a05 Merge branch 'transitions' into 'master'
Fixed shared element transitions

See merge request !524
2017-05-29 18:55:48 +00:00
ByteHamster
ecf0b88c65 Fixed shared element transitions 2017-05-29 18:02:31 +02:00
Peter Serwylo
e46fccce95 Merge branch 'text-all-caps' into 'master'
Use proper way to set text all caps on old api

See merge request !521
2017-05-26 02:57:05 +00:00
Felix Ableitner
05b4a55c0a Use proper way to set text all caps on old api 2017-05-26 11:32:29 +09:00
Peter Serwylo
18bf71a149 Merge branch 'updates-tab' into 'master'
Displaying background in updates fragment

See merge request !522
2017-05-26 01:50:37 +00:00
Hans-Christoph Steiner
35df6afa53 move "by AuthorName" to a proper format for translations
The string was forcing English grammar on other languages.
2017-05-25 19:16:11 +02:00
ByteHamster
2c31b9f793 Displaying background in updates fragment 2017-05-24 20:06:14 +02:00
Hans-Christoph Steiner
7cf5f2496c Merge branch 'last-updated-time' into 'master'
Improve display of last updated time

See merge request !519
2017-05-22 18:59:10 +00:00
Felix Ableitner
371d8ede77 Improve display of last updated time 2017-05-22 18:59:09 +00:00
Hans-Christoph Steiner
d688831cf5 gitlab-ci: make blank/unused translate output clearer
This test now shows the actual blank/unused translations, so it should
be a lot clearer why this test is failing.

!519
2017-05-19 23:39:06 +02:00
Peter Serwylo
0506fd4d79 Merge branch 'ever-more-l18n' into 'master'
convert all relevant <string> to <plurals>

Closes #883

See merge request !516
2017-05-16 22:13:25 +00:00
Hans-Christoph Steiner
3f125b8e36 For "sk" (Slovak) "many" is not a relevant quantity 2017-05-16 10:39:16 +02:00
Hans-Christoph Steiner
e07e4fc223 convert strings to plurals, and make lint enforces this
Lots of languages really need the <plurals> tags to make sense, so
this also makes lint exit with an error when it finds strings that
should be <plurals>

closes #883
2017-05-16 10:39:16 +02:00
Hans-Christoph Steiner
d71514d628 Merge branch 'fix-1011-stacked-update-notifications' into 'master'
Force each stacked notification to have a different `requestCode`

Closes #1021

See merge request !518
2017-05-16 08:38:20 +00:00
Hans-Christoph Steiner
23e6539589 Merge branch 'use-apk-name-and-version-when-bluetoothing' into 'master'
Use apk name and version when bluetoothing

See merge request !514
2017-05-16 08:34:36 +00:00
Peter Serwylo
91eb408280 Use app name and version when bluetoothing to peer.
Previously, it would either send "base.apk" (in earlier versions of
F-Droid when bluetoothing an apk from the /data/app/... dirs), or
"install-[random].apk" (if recent F-Droid when copying file to a safe
place to expose via a FileProvider.

This now writes the file to, e.g. "F-Droid-0.103.1.apk" before sending.

Note that this means files are more likely to be overridden when being
sent, if the same apk from two different repositories is either:
 * Sent via bluetooth
 * Prompted to install via the system package manager

However this should still never let malicious people write to that
folder.
2017-05-16 08:40:54 +10:00
Peter Serwylo
e965e97623 Force each stacked notification to have a different requestCode.
This ensures that the `PendingIntent.FLAG_UPDATE_CURRENT` doesn't
continually override earlier intents with the last app to be notified.
This could probably equally be done by leaving the request code as 0 and
removing the FLAG_UPDATE_CURRENT out, however it seems much more
semantic to have a separate request code for each different pending
intent.

Fixes #1021.
2017-05-16 07:58:38 +10:00
Peter Serwylo
6002a97a03 Merge branch 'master' into 'master'
Change title and remove refresh action from repo management screen

See merge request !517
2017-05-15 21:57:04 +00:00
Stephen Michel
876f94e7ca Update repo management screen title 2017-05-15 12:02:02 -04:00
Stephen Michel
1f3271d72d remove refresh action from repo management screen 2017-05-15 11:52:28 -04:00
Hans-Christoph Steiner
0fb65d2cfd Bump to 0.103.1 v0.103.1 2017-05-13 00:10:20 +02:00