Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky
Nik Clayton b9be125c95
Show the difference between edited statuses (#3314)
* Show the difference between edited statuses

Diff each status against the previous version, comparing the different
HTML as XML to produce a structured diff.

Mark new content with `<ins>`, deleted content with `<del>`.

Convert these to styled spans in `ViewEditsAdapter`.

* Update diffx to 1.1.1

Fixes issue with diffs splitting on accented characters

* Style edited strings with Android spans

Don't use HTML spans and try and format them, create real Android spans.

Do this with a custom tag handler that can add custom spans that set the
text paint appropriately.

* Lint

* Move colors in to theme_colors.xml

* Draw a roundrect for the backoround, add start/end padding

Make the background slightlysofter by drawing it as a roundrect.

Make the spans easier to understand by padding the start/end of each one with
the width of a " " character. This is visual only, the underlying text is not
changed.

* Catch exceptions when parsing XML

* Move sorting in to Dispatchers.Default coroutine

* Scope the loader type

* Remove alpha
2023-03-10 20:30:55 +01:00
..
adapter Replace DefaultTextWatcher with extensions in core-ktx (#3401) 2023-03-10 20:27:24 +01:00
appstore Remove stale pre-edit statuses from the thread view. (#3377) 2023-03-10 20:24:41 +01:00
components Show the difference between edited statuses (#3314) 2023-03-10 20:30:55 +01:00
db Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
di Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
entity Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
fragment Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
interfaces Add trending tags (#3149) 2023-02-14 19:52:11 +01:00
json don't crash on unparseable date (#3129) 2023-01-09 21:24:04 +01:00
network Use Sequences on joinToString (#3400) 2023-03-10 20:25:56 +01:00
pager Keep the tabs adapter over the life of the viewpager (#3255) 2023-02-15 19:17:59 +01:00
receiver Use more orEmpty extensions (#3399) 2023-03-01 21:06:55 +01:00
service Remove stale pre-edit statuses from the thread view. (#3377) 2023-03-10 20:24:41 +01:00
settings 3204: Add an account based preference store (#3205) 2023-02-27 14:07:28 +01:00
usecase Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
util Show the difference between edited statuses (#3314) 2023-03-10 20:30:55 +01:00
view Use TypedArray.use to obtain attrs (#3349) 2023-02-25 21:30:52 +01:00
viewdata Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
viewmodel Handle even more instance defaults (#2612) 2022-07-26 20:24:50 +02:00
AboutActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
AccountsInListFragment.kt Use more orEmpty extensions (#3399) 2023-03-01 21:06:55 +01:00
BaseActivity.java Code cleanups (#3264) 2023-02-20 19:58:37 +01:00
BottomSheetActivity.kt When looking up fediverse urls, verify that account results returned match the input query. (#3341) 2023-02-25 21:27:26 +01:00
EditProfileActivity.kt Use more orEmpty extensions (#3399) 2023-03-01 21:06:55 +01:00
FiltersActivity.kt Implement getFilters() without rxjava (#2990) 2022-12-07 19:30:53 +01:00
LicenseActivity.kt migrate `IOUtils` to Kotlin (#2763) 2022-11-07 20:10:06 +01:00
ListsActivity.kt Replace DefaultTextWatcher with extensions in core-ktx (#3401) 2023-03-10 20:27:24 +01:00
MainActivity.kt Add "Refresh" accessibility menu (#3121) 2023-03-01 19:58:18 +01:00
SplashActivity.kt remove legacy notification channel cleanup (#2550) 2022-05-25 20:54:25 +02:00
StatusListActivity.kt Fix tests (#3022) 2022-12-08 09:58:58 +01:00
TabData.kt Convert NotificationsFragment and related code to Kotlin, use the Paging library (#3159) 2023-03-10 20:12:33 +01:00
TabPreferenceActivity.kt Replace DefaultTextWatcher with extensions in core-ktx (#3401) 2023-03-10 20:27:24 +01:00
TuskyApplication.kt 3204: Add an account based preference store (#3205) 2023-02-27 14:07:28 +01:00
ViewMediaActivity.kt Support a swipe down to dismiss video (#2879) 2022-12-05 14:33:38 +01:00