chinwag-android/app/src/main/java/com/keylesspalace/tusky
Konrad Pozniak 32dea86502
Improve translating posts via Mastodon api (#4463)
This does 4 things:

- Alt text is now translated when opening media of translated posts.
Previously only the long-press alt text was translated.
- The translate button is now hidden on non-public posts. The Mastodon
api returns 403 there.
- Translated posts will only be collapsible when the original was
collapsible as well. It is just weird when an "show more" button
suddenly appears because the post got longer by translating it.
- The translation status and the untranslate button are now shown below
each other instead of next to each other. Looks way better on smaller
display or long texts.

Before / After
<img
src="https://github.com/tuskyapp/Tusky/assets/10157047/2cadd15b-2e28-4989-9bd3-d3bdd4c75329"
width="320"/> <img
src="https://github.com/tuskyapp/Tusky/assets/10157047/0ecab094-6c96-49a5-bc99-aa56b7fe2ec2"
width="320"/>
2024-05-26 08:06:51 +02:00
..
adapter inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
appstore Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
components Improve translating posts via Mastodon api (#4463) 2024-05-26 08:06:51 +02:00
db inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
di inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
entity fix deserializing null focus values (#4462) 2024-05-26 08:06:38 +02:00
fragment Improve translating posts via Mastodon api (#4463) 2024-05-26 08:06:51 +02:00
interfaces Refactor permissions requests to use ActivityResultContract (#4391) 2024-05-03 21:42:35 +02:00
json Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
network make Status.filtered nullable to make some weird api implementations work again (#4426) 2024-05-10 12:21:48 +02:00
pager upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
receiver Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
service Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
settings Add a feature and preference to confirm follows. (#4445) 2024-05-13 19:02:21 +02:00
usecase Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
util fix deserializing null focus values (#4462) 2024-05-26 08:06:38 +02:00
view Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
viewdata Improve translating posts via Mastodon api (#4463) 2024-05-26 08:06:51 +02:00
viewmodel Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
worker Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
AboutActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
AccountsInListFragment.kt inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
BaseActivity.java inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
BottomSheetActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
EditProfileActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
LicenseActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
ListsActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
MainActivity.kt inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
StatusListActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
TabData.kt Refactor notifications to Kotlin & paging (#4026) 2024-05-03 18:27:10 +02:00
TabPreferenceActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00
TuskyApplication.kt inject SharedPreferences (#4441) 2024-05-24 08:05:09 +02:00
ViewMediaActivity.kt Replace Dagger-Android with Hilt and remove Kapt (#4423) 2024-05-10 15:55:07 +02:00