Commit Graph

2292 Commits

Author SHA1 Message Date
Alibek Omarov 5e9bd26f24 ComposeActivity: add unlimited attachments support again 2020-01-04 02:54:31 +03:00
Alibek Omarov 2e2ab4ed6a ComposeActivity: add optional field markdownMode to ComposeOptions 2020-01-04 02:15:06 +03:00
Alibek Omarov 857bedc995 AppDatabase: fix migration 2020-01-04 02:14:49 +03:00
Alibek Omarov 343b121d7b ComposeActivity: fix compiling 2020-01-04 02:06:14 +03:00
Alibek Omarov 9aa29b75b4 activity_compose: fix after merge 2020-01-04 01:59:17 +03:00
Alibek Omarov 291eb4100d ComposeViewModel: fix syntax errors 2020-01-04 01:50:55 +03:00
Alibek Omarov 262e7e9445 colors: fix resource name after merge 2020-01-04 01:44:21 +03:00
Alibek Omarov 035334c47c item_media_preview: try to fix XML parsing 2020-01-04 01:12:44 +03:00
Alibek Omarov 957b6ee977 travis: remove gradle config patching 2020-01-04 01:09:14 +03:00
Alibek Omarov edd7991101 ComposeActivity: reimplement markdown mode again after pointless java->kotlin transition 2020-01-04 00:49:36 +03:00
Alibek Omarov 76a29e4308 ComposeActivity: hide markdown button by default 2020-01-03 23:58:40 +03:00
Alibek Omarov fd7740838a VersionUtils: move isPleroma method from Instance 2020-01-03 23:58:12 +03:00
Alibek Omarov 0e5e0bea39 Merge upstream develop 2020-01-03 22:55:09 +03:00
Konrad Pozniak dba3259ce6 give media previews a rounded outline (#1617)
* give media previews a rounded outline

* give media previews a rounded outline in ReportActivity
2020-01-03 20:22:16 +01:00
Ivan Kupalov fd5ec8cf97 Fix missing cases of using StatusDisplayOptions (#1614) 2020-01-03 20:22:02 +01:00
Konrad Pozniak 5f55168864 Merge pull request #1611 from nailyk-weblate/weblate-tusky-tusky
Update from Weblate
2020-01-02 19:02:09 +01:00
Vegard Skjefstad 94a9274de8 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (408 of 408 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nb_NO/
2020-01-02 17:51:03 +00:00
Joan Montané 956456ab17 Translated using Weblate (Catalan)
Currently translated at 100.0% (408 of 408 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ca/
2020-01-02 17:51:03 +00:00
ButterflyOfFire 2f998aa49f Translated using Weblate (Arabic)
Currently translated at 100.0% (407 of 407 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ar/
2020-01-02 17:51:03 +00:00
Konrad Pozniak 368df7437e use RxAwareViewModel for more ViewModels (#1613)
* use RxAwareViewModel for more ViewModels

* fix ReportViewModel
2020-01-02 18:50:58 +01:00
Konrad Pozniak b927747518 fix poll button being visible below voted poll (#1612) 2019-12-31 16:56:04 +01:00
Konrad Pozniak ae121ccb2c Merge pull request #1610 from tuskyapp/improve_scheduled_toot
Improve ScheduledTootActivity
2019-12-31 15:00:23 +01:00
Konrad Pozniak 283e9d0ad9 address PR feedback 2019-12-31 13:57:24 +01:00
Konrad Pozniak c9d254fbc3 Merge pull request #1606 from nailyk-weblate/weblate-tusky-tusky
Update from Weblate
2019-12-30 21:41:44 +01:00
Mélanie Chauvel e3136cf966 Translated using Weblate (Esperanto)
Currently translated at 100.0% (406 of 406 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eo/
2019-12-30 20:37:25 +00:00
Anonymous 942f169a05 Translated using Weblate (Swedish)
Currently translated at 100.0% (406 of 406 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sv/
2019-12-30 20:37:25 +00:00
Ivan Kupalov 8dcfec1734 Use blurhash as image preview and as sensitive media cover, close #1571 (#1581)
* Use blurhash as image preview and as sensitive media cover, close #1571

* Fix focal point for blurhashes

* Fix video indicator overlapping sensitive media indicator

* Add a preference for blurhash

* Add blurhash to report UI.

* Introduce StatusDisplayOptions
2019-12-30 21:37:20 +01:00
Konrad Pozniak 3a80ab727a add license headers 2019-12-30 21:09:10 +01:00
Konrad Pozniak 3f00b47d0c remove debug logging 2019-12-30 21:05:03 +01:00
Konrad Pozniak 7c3f19a07e add empty screen message 2019-12-30 21:01:38 +01:00
Konrad Pozniak 42d2a4798f color the SwipeRefreshLayout 2019-12-30 20:54:00 +01:00
Konrad Pozniak 7aff41b89c clean up code 2019-12-30 20:48:01 +01:00
Konrad Pozniak 12a04dfb08 move to androidx paging 2019-12-30 20:40:27 +01:00
kyori19 40b859a06e Fix ComposeOptions.visibility not applied (#1605) 2019-12-27 21:02:16 +01:00
Alibek Omarov 3d6354b155 Move media preview layout definitions to standalone XML file to modify it in future 2019-12-27 15:10:30 +03:00
Conny Duck 04b81c5240 improve layout names 2019-12-22 11:55:26 +01:00
Conny Duck 7f2aab7723 move classes to component packages 2019-12-22 11:47:34 +01:00
Conny Duck fe0d11b755 convert ScheduledTootAdapter to Kotlin 2019-12-22 11:42:13 +01:00
Konrad Pozniak 03c66d62df add test for VersionUtils (#1602)
* add test for VersionUtils

* add nullability annotation to VersionUtils
2019-12-21 18:56:30 +01:00
Konrad Pozniak 99032100d4 Implement identity proof api (#1597)
* implement identity proof api

* fix warnings in AccountActivity

* fix createClickableText method

* improve error handling

* use combineOptionalLiveData to simplify code
2019-12-21 18:56:16 +01:00
Konrad Pozniak cf2a0fb4f9 delete unused stuff (#1601) 2019-12-21 17:32:42 +01:00
Konrad Pozniak 639a29aa7a fix replying to toots (#1600) 2019-12-21 15:56:19 +01:00
Konrad Pozniak 5a48368ccf fix delete&redraft losing toot text (#1599) 2019-12-21 15:56:07 +01:00
Konrad Pozniak 847b44e2c1 fix imagebutton color (#1598) 2019-12-21 15:55:55 +01:00
Konrad Pozniak e28463ae7d upgrade dependencies (#1596) 2019-12-20 21:31:41 +01:00
Konrad Pozniak 8aa217c028 upgrade androidx.browser to 1.2.0 (#1595) 2019-12-20 20:08:02 +01:00
Konrad Pozniak d9d2fdbc4b upgrade SparkButton to 3.0.0 (#1594) 2019-12-20 19:52:36 +01:00
Alibek Omarov b7662e1798 ScheduledTootActivity: fix toolbar back button #1586 (#1591) 2019-12-20 19:14:22 +01:00
Ivan Kupalov 9c59d000f9 ComposeActivity refactor (#1541)
* Convert ComposeActivity to Kotlin

* More ComposeActivity cleanups

* Move ComposeActivity to it's own package

* Remove ComposeActivity.IntentBuilder

* Re-do part of the media downsizing/uploading

* Add sending of status to ViewModel, draft media descriptions

* Allow uploading video, update description after uploading

* Enable camera, enable upload cancelling

* Cleanup of ComposeActivity

* Extract CaptionDialog, extract ComposeActivity methods

* Fix handling of redrafted media

* Add initial state and media uploading out of Activity

* Change ComposeOptions.mentionedUsernames to be Set rather than List

We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.

* Add combineOptionalLiveData. Add docs.

It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.

* Add poll support to Compose.

* cleanup code

* move more classes into compose package

* cleanup code

* fix button behavior

* add error handling for media upload

* add caching for instance data again

* merge develop

* fix scheduled toots

* delete unused string

* cleanup ComposeActivity

* fix restoring media from drafts

* make media upload code a little bit clearer

* cleanup autocomplete search code

* avoid duplicate object creation in SavedTootActivity

* perf: avoid unnecessary work when initializing ComposeActivity

* add license header to new files

* use small toot button on bigger displays

* fix ComposeActivityTest

* fix bad merge

* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
Konrad Pozniak a882e6c067 Merge pull request #1590 from nailyk-weblate/weblate-tusky-tusky
Update from Weblate
2019-12-19 18:36:22 +01:00