1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-22 21:10:02 +01:00
Commit Graph

335 Commits

Author SHA1 Message Date
Matthieu
edd6f4d0b4 Everything is a coroutine 2020-12-30 18:13:39 +01:00
x
2f49243901 Translated using Weblate (Italian)
Currently translated at 100.0% (139 of 139 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/
2020-12-30 07:43:28 +00:00
Matthieu
f38e823578 More coroutines. 2020-12-29 22:35:45 +01:00
Matthieu
1254a3566d More coroutinification 2020-12-29 22:14:32 +01:00
Matthieu
3a91b02e55 Use coroutines 2020-12-29 19:34:48 +01:00
Matthieu
178ae0b392 Merge branch 'inspection_run' into 'master'
Drawables, content descriptions, run inspection and address problems

See merge request pixeldroid/PixelDroid!277
2020-12-28 20:59:04 +01:00
Matthieu
86543ee74c Correct a bunch of small things raised by inspection 2020-12-28 20:53:24 +01:00
Weblate Admin
c4cfc82b6c Translated using Weblate (Arabic)
Currently translated at 72.3% (94 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/
2020-12-28 17:48:50 +00:00
Weblate Admin
ef6211e890 Translated using Weblate (German)
Currently translated at 87.6% (114 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/
2020-12-28 17:48:50 +00:00
Matthieu
46c4719a72 Remove duplicate or unused drawables. Use dynamic colours instead of night drawables 2020-12-28 17:43:07 +01:00
Matthieu
555c3e63da Merge branch 'fix_browser_intents' into 'master'
Fix browser intents on newer android versions

See merge request pixeldroid/PixelDroid!275
2020-12-28 17:23:16 +01:00
Matthieu
ff7f18d2ae Refactor and move out openUrl method to utils 2020-12-28 17:18:07 +01:00
Matthieu
d6d1262629 Don't query but try catch to bypass new package visibility feature in android 11 2020-12-28 17:00:02 +01:00
Weblate Admin
af4ef0af71 Translated using Weblate (Arabic)
Currently translated at 72.3% (94 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/
2020-12-28 15:52:49 +00:00
Matthieu
b105a9557e Merge branch 'translations' into 'master'
Translations

See merge request pixeldroid/PixelDroid!273
2020-12-28 16:52:37 +01:00
Matthieu
12ed06cce8 Move ReportActivity to posts package 2020-12-28 15:20:31 +01:00
Matthieu
0a4d285d14 Big reorganization of code into logical units (#251)
Not much actual code is changed
2020-12-26 12:10:54 +01:00
x
a96aa2e58e Translated using Weblate (Italian)
Currently translated at 100.0% (130 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/
2020-12-23 23:20:33 +00:00
T3rr0rZ0n3
c77d381330 Translated using Weblate (Catalan)
Currently translated at 97.6% (127 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/
2020-12-23 14:10:31 +00:00
Xose M
26a1c6eda5 Translated using Weblate (Galician)
Currently translated at 100.0% (130 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/gl/
2020-12-22 11:43:25 +00:00
Mostafa Ahangarha
597b34d199 Translated using Weblate (Persian)
Currently translated at 100.0% (130 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-12-21 16:43:25 +00:00
Shin Ice
820048e6c5 Translated using Weblate (German)
Currently translated at 87.6% (114 of 130 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/
2020-12-20 21:43:25 +00:00
Matthieu
77e30cf04c Remove useless interfaces 2020-12-20 18:39:50 +01:00
Matthieu
6c66863305 Update version number 2020-12-20 14:31:48 +01:00
Matthieu
deb21ccb90 Don't hide scrollbar in about activity 2020-12-20 11:49:35 +01:00
Matthieu
94cb52e25c Merge branch 'fix_report' into 'master'
Fix report API

See merge request pixeldroid/PixelDroid!269
2020-12-19 21:47:23 +01:00
Matthieu
0f5d7c20bd Fix report API 2020-12-19 21:41:07 +01:00
Matthieu
bba487b98b Hide report option for your own posts 2020-12-19 21:13:30 +01:00
Matthieu
08f8bbcc13 Update dependencies 2020-12-19 21:12:56 +01:00
Matthieu
bacd5e138b Don't re-bind camera if already bound
This prevents flashing black when entering the CameraFragment
2020-12-19 13:23:59 +01:00
Matthieu
1e2c73c2cf List of lambdas to defer creation of fragments 2020-12-19 13:22:45 +01:00
Matthieu
00f3dd5a19 Re-use gson instance (improves performance) 2020-12-19 13:14:38 +01:00
Matthieu
60ba840421 Use BaseActivity to inject the database and api 2020-12-16 22:11:45 +01:00
Matthieu
ba5fd1c1cf Remove activity declaration in manifest for BaseActivity 2020-12-16 21:54:18 +01:00
Matthieu
9980d651d2 Remove imports and make CameraActivity inherit from BaseActivity 2020-12-16 21:50:27 +01:00
Matthieu
7066c942e8 Add direct links to translation and forge platforms 2020-12-16 17:50:47 +01:00
Matthieu
969ec214fa Fix default language being broken 2020-12-16 17:27:29 +01:00
Matthieu
2256691cd1 add icons 2020-12-12 00:51:06 +01:00
Matthieu
15e294fda7 move about button down 2020-12-11 16:59:02 +01:00
Matthieu
689dffe7c1 Add in-app language setting 2020-12-11 16:53:12 +01:00
Matthieu
e71e5c304a clean imports 2020-12-08 18:33:16 +01:00
Matthieu
570b76ecdc update dependencies 2020-12-08 18:12:00 +01:00
Matthieu
e3f9539af2 Fix unit test for token 2020-11-29 20:35:26 +01:00
Matthieu
3370001c4c store client ID and secret, and set up refresh if a request fails with 401 2020-11-29 20:19:25 +01:00
Matthieu
bf9d5287ba Store refresh tokens 2020-11-29 14:58:54 +01:00
Matthieu
f465e495d2 Delete posts with three-dot "more options" menu 2020-11-28 15:05:13 +01:00
Matthieu
624cff117a Cache feeds with database using the new paging3 API 2020-11-27 17:02:52 +01:00
Mostafa Ahangarha
d54a240424 Translated using Weblate (Persian)
Currently translated at 100.0% (123 of 123 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-11-16 20:44:26 +00:00
Xose M
4d1ea9f4db Translated using Weblate (Galician)
Currently translated at 100.0% (123 of 123 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/gl/
2020-11-09 13:54:55 +00:00
Matthieu
b04224babb Merge branch 'translations' into 'master'
Translated using Weblate (Russian)

See merge request pixeldroid/PixelDroid!260
2020-11-09 14:19:38 +01:00
Matthieu
d589e464ea Remove emulator tests from CI, since they are very flaky. 2020-11-08 20:24:38 +01:00
ge
346ee316b4 Translated using Weblate (Russian)
Currently translated at 100.0% (123 of 123 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: https://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/
2020-11-08 03:44:43 +00: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
fa5e9b764e update dependencies 2020-09-14 16:04:53 +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
Matthieu
5f773bef1a release 3 2020-06-05 23:09:25 +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