Tusky-App-Android/app/src
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
..
androidTest/java/com/keylesspalace/tusky Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
blue/res
green/res
main Show tooltips instead of Toasts when long-pressing attachment images (#4382) 2024-05-03 13:21:02 +02:00
test/java Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00