Commit Graph

221 Commits

Author SHA1 Message Date
Matthieu d589e464ea Remove emulator tests from CI, since they are very flaky. 2020-11-08 20:24:38 +01:00
Matthieu 0718aeadac Merge branch 'release_5' into 'master'
Alpha release 5

See merge request pixeldroid/PixelDroid!257
2020-11-06 15:53:39 +01:00
Matthieu 16529b40fd Alpha release 5 2020-11-06 14:49:49 +01:00
x b0f48a1cea Translated using Weblate (Italian)
Currently translated at 100.0% (123 of 123 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/
2020-11-03 18:44:42 +00:00
Matthieu 245c9c2e64 Hide comments by default. Fixes #141 2020-11-03 10:13:43 +01:00
Matthieu ee06e0229c Merge branch 'crash_fixes' into 'master'
Crash fixes, various small improvements

Closes #255 and #223

See merge request pixeldroid/PixelDroid!254
2020-11-02 22:45:53 +01:00
Matthieu ae96961dbe make sure album icon is hidden on re-used recyclerview viewholder 2020-11-02 22:36:25 +01:00
Matthieu c65a121e28 add reload and error to profile 2020-11-02 21:58:01 +01:00
Matthieu 0167a63148 Add attribution for error panda 2020-11-02 16:12:39 +01:00
Matthieu 7f04028125 Move duplicated error to layout file, create strings 2020-11-02 13:28:27 +01:00
Matthieu 22b03fca54 add poll to prevent crashes with mastodon 2020-11-01 19:57:56 +01:00
Matthieu 2c1fef2a0a Make null-ness possibility explicit. Improve fallback of displayname 2020-11-01 18:44:32 +01:00
Matthieu 5be0f1f773 Fix thumbnail on newer android versions 2020-11-01 00:07:28 +01:00
Matthieu afeae16c31 Don't reset the pages to 0, but to 1 2020-10-31 22:40:05 +01:00
Matthieu d0015b805c Add album icon, fix some API calls, remove superfluous API call 2020-10-31 22:11:01 +01:00
Matthieu 2e88e49875 Add error messages instead of toasts 2020-10-31 11:21:56 +01:00
Xose M 762f090fa5 Translated using Weblate (Galician)
Currently translated at 100.0% (120 of 120 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/gl/
2020-10-28 11:44:39 +00:00
Matthieu 40f4d03bd1 Add serializable to Source 2020-10-28 11:19:36 +01:00
Paweł Lasecki 66aa68fa1b Translated using Weblate (Polish)
Currently translated at 60.8% (73 of 120 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/pl/
2020-10-26 00:44:39 +00:00
Paweł Lasecki 293f6088d6 Added translation using Weblate (Polish) 2020-10-25 17:39:16 +00:00
x 53be0d5ccf Translated using Weblate (Italian)
Currently translated at 100.0% (120 of 120 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/
2020-10-19 16:08:13 +00:00
Matthieu 1e2638965a Merge branch 'translations' into 'master'
Translations

See merge request pixeldroid/PixelDroid!253
2020-10-08 10:35:07 +02:00
Matthieu 96fd086c5f Fix upload adding error 2020-10-05 13:21:59 +02:00
Danial Behzadi cfd6e70633 Translated using Weblate (Persian)
Currently translated at 100.0% (120 of 120 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-10-05 04:56:43 +00:00
Matthieu 6bf532698a Prepare for alpha 4 release 2020-10-04 23:40:42 +02:00
Matthieu 0fe4eacf0b Translated using Weblate (Persian)
Currently translated at 100.0% (103 of 103 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-10-04 23:29:22 +02:00
Matthieu 50dd0bad51 Add reporting and link sharing functionality, polish UI 2020-10-04 23:27:06 +02:00
Matthieu c014eef3f3 Make action bars contain info and back button 2020-09-26 00:25:08 +02:00
Matthieu b14242a448 Extract strings 2020-09-25 17:00:08 +02:00
Matthieu 0910ef176a Create About activity with licenses and dependency list 2020-09-25 16:46:01 +02:00
Matthieu 822f81e4b8 Merge branch 'translations' into 'master'
Translations

See merge request pixeldroid/PixelDroid!244
2020-09-14 16:01:29 +02:00
Matthieu 4f5e08d73e fix for dark mode 2020-09-13 23:48:03 +02:00
Matthieu 7c361aefe0 Add hamburger button to tab bar 2020-09-13 23:35:09 +02:00
x e27779c358 Translated using Weblate (Italian)
Currently translated at 100.0% (98 of 98 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/
2020-09-12 13:28:25 +00:00
Mostafa Ahangarha f8aeaa52d2 Translated using Weblate (Persian)
Currently translated at 100.0% (98 of 98 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-09-11 14:21:48 +00:00
Matthieu 98e18635b5 Add crash report using TraceDroid 2020-09-10 22:47:04 +02:00
Matthieu 7066c8e903 Switch to flexbox to fix #242 2020-09-10 22:09:14 +02:00
Matthieu 61d6ef47ac Adding time to notification 2020-09-10 20:20:23 +02:00
Matthieu 7bca413d60 Use nodeinfo endpoint to get info about the capabilities of the instance 2020-08-22 22:34:21 +02:00
Matthieu bd39bc681d Merge branch 'translations' into 'master'
Translations

See merge request pixeldroid/PixelDroid!235
2020-07-26 20:59:35 +02:00
Matthieu 7e3398d908 Translated using Weblate (Dutch)
Currently translated at 91.5% (87 of 95 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/
2020-07-26 20:59:35 +02:00
Matthieu 21925e7af4 Dependency injection
Configure dependency injection for API and the database. Uses Dagger (dagger.dev)

The API is held in a holder, so that it can be invalidated or recreated as needed.

Big refactor of the feeds, this introduces a bit more duplication of code (some very similar methods that differ only in the types or minor details), but now the inheritance makes more sense and there is less "forcing" to make the inheritance work (for example: no more casting Int to String just to have the right type for the key)
It should be easier to work with the feeds in the future, maybe we'll find better abstractions later on.
2020-07-26 20:56:01 +02:00
Matthieu f1fef066b0 Translated using Weblate (Spanish)
Currently translated at 100.0% (95 of 95 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/
2020-06-26 00:52:35 +02:00
Sanimys 7981ae8643
enable creating albums (#229)
* Moved the crop button so that it doesn't take space in the activity

* Semi transparent in the middle, same position than the image

* First draft of the album creation

* choose multiple images in gallery

* Added functionalities to Album creation

* merge with master

* Gallery of images selected for the album creation

* to merge with master

* Images editable individually

* Creation of album is now possible

* Added tests

* Added test to edit picture selected

* merge PostCreation and AlbumCreation

* Merged completely PostCreation and AlbumCreation

* removed albumCreation in Manifest

* Refactored slightly

* Don't re-upload all images at each edit, only re-upload one

* Make sure all images are uploaded, correctly calculate progress

* comment assert, sorry

* fix test

* fix merge

Co-authored-by: Joachim Dunant <joachim.dunant@epfl.ch>
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
2020-06-05 23:49:28 +02:00
Samuel Dietz b01922126f
Better sensitive profiles (#230)
Stop using the sensitive icon as the placeholder for every post, but only load it for actually sensitive posts.
2020-06-05 20:44:57 +02:00
Ulysse Widmer 34f3d12dbc
Offline mode part 2 - Store posts in the DB (#209)
* store posts base idea

* switch to nullable types in Status object

* store posts first try + switch to nullable types for Attachment objects

* fix some tests, add converters

* update gradle

* wip: display stored post

* first draft of functional offline post

* added likes and shares to offline data

* fully functional

* clear activity correctly

* clear correctly activities

* refactored some tests and added offline feed test

* Distinguish between users, and only store home timeline

* count better

* Sort when getting statuses

* disable buttons, since we're offline anyways

Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
2020-06-05 20:14:57 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 46498b4a9c
Translations update from Weblate (#227)
* Translated using Weblate (Italian)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/

* Translated using Weblate (French)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (Arabic)

Currently translated at 98.9% (93 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/

* Translated using Weblate (Persian)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (German)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (Dutch)

Currently translated at 88.2% (83 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Arabic)

Currently translated at 100.0% (94 of 94 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/

Co-authored-by: x <hardwired1.0@protonmail.com>
Co-authored-by: retiolus <retiolus@protonmail.com>
Co-authored-by: ButterflyOfFire <butterflyoffire+pixeldroid@protonmail.com>
Co-authored-by: Mostafa Ahangarha <ahangarha@riseup.net>
Co-authored-by: Juan Roberto <juanrobertogarciasanchez@gmail.com>
Co-authored-by: Tagomago <tagomago@disroot.org>
Co-authored-by: T B <weblatepixeldroid@thilobuchholz.de>
Co-authored-by: Anonymous <noreply@weblate.org>
2020-06-05 19:46:40 +02:00
Matthieu 7170a3d285 Why document when you can just not? Thank you Google 2020-06-03 19:33:46 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 0348696f3a
Improve upload flow performance & visual feedback (#224)
* Make less copies, detect if no changes are made for a fast path, give some feedback while processing the image

* avoid NPE on camera, use more generic inputstream so that file picking works again

* stop using resource in test

* stop using resource in test

* fix uri issue and add test

* Test dialog, stringify strings

* click error button, for fun

* test error button in post creation

* check retry of upload works

* Remove wrong button click in test

* add some tests for followers list

* test edit profile button

* test back button

* try to get all callbacks to be called

* Fix typo

* Make sure crop is not ignored
2020-06-03 16:32:02 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 9a758ee7bf
Translations update from Weblate (#217)
* Translated using Weblate (Basque)

Currently translated at 69.2% (63 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Russian)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/

* Translated using Weblate (Basque)

Currently translated at 97.8% (89 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Basque)

Currently translated at 97.8% (89 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Persian)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/

* Translated using Weblate (Russian)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 98.9% (90 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/zh_Hans/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/zh_Hans/

* Translated using Weblate (Basque)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/sv/

* Translated using Weblate (Dutch)

Currently translated at 79.1% (72 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 79.1% (72 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 80.2% (73 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 80.2% (73 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 81.3% (74 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 81.3% (74 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 90.1% (82 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 90.1% (82 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (French)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (French)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (French)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (German)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (French)

Currently translated at 100.0% (91 of 91 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

Co-authored-by: bertol <bertol@ni.eus>
Co-authored-by: Siberia Bread Factory <darak85863@mailcupp.com>
Co-authored-by: dabid <dabid@laborategia.eus>
Co-authored-by: Mostafa Ahangarha <ahangarha@riseup.net>
Co-authored-by: ge <gechandev@gmail.com>
Co-authored-by: Dylan Wu <dw@watelier.cn>
Co-authored-by: Juan Roberto <juanrobertogarciasanchez@gmail.com>
Co-authored-by: Isak Alexander <isak@holmstroms.org>
Co-authored-by: Weblate Admin <contact@pixeldroid.org>
Co-authored-by: T B <weblatepixeldroid@thilobuchholz.de>
Co-authored-by: pascalou <baz.14@zaclys.net>
Co-authored-by: Anonymous <noreply@weblate.org>
2020-06-03 15:50:17 +02:00