Tusky-App-Android/app
Christophe Beyls 76c6ec5510
Show tooltips instead of Toasts when long-pressing attachment images (#4382)
- Use `TooltipCompat.setTooltipText()` instead of setting an
`OnLongClickListener` showing a Toast, to show the attachment
description. This method will display native tooltips on API 26+, and
set an `OnLongClickListener` on older versions to display a special
Toast anchored to the view. In both cases this provides a better user
experience.
- Simplify `Attachment.getFormattedDescription()` by using Kotlin's
`Duration`. Since it's an inline class, no extra memory will be
allocated on the heap. Also, ensure that the calculation of minutes and
hours use the rounded number of seconds instead of the non-rounded one.
2024-05-03 13:21:02 +02:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase Machine translation of posts (#4307) 2024-03-09 16:12:18 +01:00
src Show tooltips instead of Toasts when long-pressing attachment images (#4382) 2024-05-03 13:21:02 +02:00
build.gradle Release 119 2024-05-03 12:28:45 +02:00
getGitSha.gradle
lint-baseline.xml add the correct information to regenerate the lint baseline file (#4351) 2024-04-02 21:02:51 +02:00
lint.xml Fix some warnings & recreate lint-baseline.xml (#4278) 2024-02-25 16:20:26 +01:00
proguard-rules.pro Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00