76c6ec5510
- 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. |
||
---|---|---|
.. | ||
AccountFieldEditAdapter.kt | ||
AccountSelectionAdapter.kt | ||
AccountViewHolder.kt | ||
EmojiAdapter.kt | ||
FollowRequestViewHolder.kt | ||
LocaleAdapter.kt | ||
NotificationsAdapter.java | ||
PlaceholderViewHolder.kt | ||
PollAdapter.kt | ||
PreviewPollOptionsAdapter.kt | ||
ReportNotificationViewHolder.kt | ||
StatusBaseViewHolder.java | ||
StatusDetailedViewHolder.java | ||
StatusViewHolder.java | ||
TabAdapter.kt |