Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky/components/account
Nik Clayton a21f2fadf9
Remove rxjava from API calls used by AccountViewModel::changeRelationship() (#3008)
* Remove rxjava from API calls used by AccountListFragment

* Remove rxjava from API calls used by AccountViewModel::changeRelationship()

The affected API functions are also called from

- ReportViewModel.kt
- SearchViewModel.kt
- AccountListFragment.kt
- SFragment.java
- TimelineCases.kt

so they have also been updated.

This change requires bridging from Java code to Kotlin `suspend` functions,
by creating wrappers for the `mute` and `block` functions that can be
called from Java and create a coroutine scope.

I've deliberately made this fairly ugly so that it sticks out and can be
removed later.

* Use "Throwable" type and name

* Delete 46.json

Not sure where this came from.

* Emit log messages with the correct tag

* Add another log tag, and lint

* Move viewModelScope.launch in to changeRelationshop()
2022-12-28 19:06:31 +01:00
..
list Add done button to lists dialog 2022-11-16 21:54:11 +09:00
media correctly show "nothing here" in AccountMediaFragment (#2911) 2022-11-23 20:07:23 +01:00
AccountActivity.kt Disable tab swiping by preference in profile and search (#2889) 2022-12-01 19:51:13 +01:00
AccountFieldAdapter.kt Remove Identity Proof Support (#2456) 2022-04-27 19:58:39 +02:00
AccountPagerAdapter.kt AccountMediaFragment improvements (#2684) 2022-09-02 16:52:47 +02:00
AccountViewModel.kt Remove rxjava from API calls used by AccountViewModel::changeRelationship() (#3008) 2022-12-28 19:06:31 +01:00