1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-15 22:34:57 +00:00
NewPipe/app/src/main
AudricV cdd5e89b86
Add ability to copy hashtags, URLs and timestamps in descriptions on long-press
This commit adds the ability to copy to clipboard hashtags, URLs and timestamps
when long-pressing them.

Some changes in our TextView class related to text setting have been required
and metadata items are now using a NewPipeTextView instead of a standard
TextView.

Six new classes have been added:

- a custom LinkMovementMethod class;
- a custom ClickableSpan class, LongPressClickableSpan, in order to set a long
  press event;
- a class to avoid code duplication in CommentTextOnTouchListener, TouchUtils;
- three implementations of LongPressClickableSpan used when linkifying text:
  - HashtagLongPressClickableSpan for hashtags;
  - TimestampLongPressClickableSpan for timestamps;
  - UrlLongPressClickableSpan for URLs.
2023-01-15 11:40:27 +01:00
..
assets Update displayed licenses 2020-12-31 19:26:41 -05:00
java Add ability to copy hashtags, URLs and timestamps in descriptions on long-press 2023-01-15 11:40:27 +01:00
res Add ability to copy hashtags, URLs and timestamps in descriptions on long-press 2023-01-15 11:40:27 +01:00
AndroidManifest.xml Merge pull request #9306 from Stypox/target-api-33 2022-12-31 14:49:30 +01:00