Commit Graph

11 Commits

Author SHA1 Message Date
Alibek Omarov 9fb8dbc732 app: all external references are now called Husky to not conflict with Tusky files 2020-05-28 04:53:56 +03:00
Alibek Omarov d542fc3d27 MediaUploader: fix stupid bug that made all pictures to be resized 2020-05-24 02:42:46 +03:00
Alibek Omarov 03ce58c5c2 NodeInfo: replace Int by Long in upload limits, add test cases 2020-05-23 14:57:14 +03:00
kyori19 737600480b Fix large media uploading (#1800) 2020-05-22 20:08:24 +03:00
Alibek Omarov bbbf3bf55d Stickers: add PleromaFE stickers support, enabled in settings 2020-05-13 02:59:20 +03:00
Alibek Omarov ff361c1743 Merge with upstream 2020-01-20 13:56:18 +03:00
Levi Bard 9dccd06a06 Add support for uploading audio attachments (#1630)
* Add support for audio attachments.
Partially addresses #1337

* Register Tusky as a target for audio sharing

* Use icon with textColorTertiary for audio preview
2020-01-16 19:05:52 +01:00
Alibek Omarov 0a40b9cc6f ComposeActivity: add warning for too big files 2020-01-16 16:51:55 +03:00
Alibek Omarov 2e45c1ecb4 ComposeActivity: use nodeinfo data for determining upload limits and markdown support 2020-01-16 16:44:32 +03:00
Alibek Omarov f5aa20577e ComposeActivity: restore ability to upload any type of file 2020-01-11 07:47:11 +03:00
Ivan Kupalov 8770fbe986 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