chinwag-android/app/src/main/java/com/keylesspalace/tusky/util
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
..
AppBarLayoutNoEmptyScrollBehavior.kt Add CLEAR and FILTER buttons to notifications (#1168) 2019-04-09 19:13:54 +02:00
BiListing.kt Redesign report activity (#1295) 2019-06-09 16:55:34 +02:00
ClickableSpanNoUnderline.kt fix RecentlyNonNull/Nullable warnings 2018-09-22 21:11:18 +02:00
ComposeTokenizer.kt Add autocompletion for custom emoji (#1089) 2019-03-04 19:28:08 +01:00
CountUpDownLatch.java only show Progress Dialog if necessary when sending toot (#1470) 2019-09-06 21:40:11 +02:00
CustomEmojiHelper.java Migrate to Glide (#1175) 2019-04-16 21:39:12 +02:00
CustomURLSpan.java UI Improvements (#445) 2017-11-30 20:12:09 +01:00
Either.kt List editing (#1104) 2019-03-16 13:36:16 +01:00
EmojiCompatFont.java 2019 Emoji Update (#1261) 2019-06-06 21:51:56 +02:00
FocalPointUtil.kt Migrate to Glide (#1175) 2019-04-16 21:39:12 +02:00
getErrorMessage.kt Tab customization & direct messages tab (#1012) 2019-02-12 19:22:37 +01:00
HtmlConverter.kt Fix incorrectly incrementing IDs before sending to server. (#1026) 2019-02-05 20:06:00 +01:00
HtmlUtils.java fix some lint warnings 2019-04-21 08:24:29 +02:00
HttpHeaderLink.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
ImageLoadingHelper.kt fix avatars with non-square aspect ratio display (#1528) 2019-10-10 18:43:48 +02:00
IOUtils.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
LinkHelper.java Upgrade api level to Android 10, implement new sharing api (#1537) 2019-10-22 21:18:20 +02:00
Listing.kt Tab customization & direct messages tab (#1012) 2019-02-12 19:22:37 +01:00
ListStatusAccessibilityDelegate.kt Bookmarks (#1560) 2019-11-19 10:15:32 +01:00
ListUtils.kt List editing (#1104) 2019-03-16 13:36:16 +01:00
LiveDataUtil.kt ComposeActivity refactor (#1541) 2019-12-19 19:09:40 +01:00
LocaleManager.kt Upgrade api level to Android 10, implement new sharing api (#1537) 2019-10-22 21:18:20 +02:00
MediaUtils.kt Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
NetworkState.kt Tab customization & direct messages tab (#1012) 2019-02-12 19:22:37 +01:00
NotificationHelper.java Upgrade api level to Android 10, implement new sharing api (#1537) 2019-10-22 21:18:20 +02:00
NotificationPullJobCreator.java Fix IDs (#1016) 2019-01-31 19:03:34 +01:00
NotificationTypeConverter.kt upgrade Android gradle plugin, Kotlin and jetifier (#1468) 2019-09-03 18:35:42 +02:00
OkHttpUtils.java Upgrade api level to Android 10, implement new sharing api (#1537) 2019-10-22 21:18:20 +02:00
PagingRequestHelper.java fix some lint warnings 2019-04-21 08:24:29 +02:00
PairedList.java fix IndexOutOfBoundException caused by ListStatusAccessibilityDelegate (#1178) 2019-04-07 16:32:58 +02:00
Resource.kt Redesign report activity (#1295) 2019-06-09 16:55:34 +02:00
RickRoll.kt enhance bad-domain detection 2019-06-01 15:29:15 -04:00
SaveTootHelper.java ComposeActivity refactor (#1541) 2019-12-19 19:09:40 +01:00
SharedPreferencesExtensions.kt New settings (#891) 2018-11-12 21:09:39 +01:00
ShareShortcutHelper.kt fix crashes related to missing Rx error handler (#1561) 2019-11-17 20:59:13 +01:00
SmartLengthInputFilter.kt fix shouldTrimStatus and add tests (#1404) 2019-07-25 12:15:54 +02:00
SpanUtils.kt fix some lint warnings and Kotlin style issues (#1390) 2019-07-16 19:26:55 +02:00
StatusViewHelper.kt Don't interpret html inside poll options. (#1527) 2019-10-11 17:35:22 +02:00
StringUtils.kt Fix incorrectly incrementing IDs before sending to server. (#1026) 2019-02-05 20:06:00 +01:00
ThemeUtils.java upgrade appcompat, fix nightmode (#1455) 2019-10-03 19:58:21 +02:00
TimestampUtils.java cleanup code in StatusViewHolders (#1418) 2019-07-27 21:53:28 +02:00
VersionUtils.java Scheduled toot (#1004) 2019-10-02 21:28:12 +02:00
ViewDataUtils.java Bookmarks (#1560) 2019-11-19 10:15:32 +01:00
ViewExtensions.kt ComposeActivity refactor (#1541) 2019-12-19 19:09:40 +01:00