Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/util
Konrad Pozniak 643e012b11
Timeline paging (#2238)
* first setup

* network timeline paging / improvements

* rename classes / move to correct package

* remove unused class TimelineAdapter

* some code cleanup

* remove TimelineRepository, put mapper functions in TimelineTypeMappers.kt

* add db migration

* cleanup unused code

* bugfix

* make default timeline settings work again

* fix pinning statuses from timeline

* fix network timeline

* respect account settings in NetworkTimelineRemoteMediator

* respect account settings in NetworkTimelineRemoteMediator

* update license headers

* show error view when an error occurs

* cleanup some todos

* fix db migration

* fix changing mediaPreviewEnabled setting

* fix "load more" button appearing on top of timeline

* fix filtering and other bugs

* cleanup cache after 14 days

* fix TimelineDAOTest

* fix code formatting

* add NetworkTimeline unit tests

* add CachedTimeline unit tests

* fix code formatting

* move TimelineDaoTest to unit tests

* implement removeAllByInstance for CachedTimelineViewModel

* fix code formatting

* fix bug in TimelineDao.deleteAllFromInstance

* improve loading more statuses in NetworkTimelineViewModel

* improve loading more statuses in NetworkTimelineViewModel

* fix bug where empty state was shown too soon

* reload top of cached timeline on app start

* improve CachedTimelineRemoteMediator and Tests

* improve cached timeline tests

* fix some more todos

* implement TimelineFragment.removeItem

* fix ListStatusAccessibilityDelegate

* fix crash in NetworkTimelineViewModel.loadMore

* fix default state of collapsible statuses

* fix default state of collapsible statuses -tests

* fix showing/hiding media in the timeline

* get rid of some not-null assertion operators in TimelineTypeMappers

* fix tests

* error handling in CachedTimelineViewModel.loadMore

* keep local status state when refreshing cached statuses

* keep local status state when refreshing network timeline statuses

* show placeholder loading state in cached timeline

* better comments, some code cleanup

* add TimelineViewModelTest, improve code, fix bug

* fix ktlint

* fix voting in boosted polls

* code improvement
2022-01-11 19:00:29 +01:00
..
BindingHolder.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
BlurHashDecoder.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
CardViewMode.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ComposeTokenizer.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
CustomEmojiHelper.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
CustomFragmentStateAdapter.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Either.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
EmojiCompatFont.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
FocalPointUtil.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
GlideModule.kt support animated PNGs and WEBPs (#2244) 2021-10-09 10:45:41 +02:00
HttpHeaderLink.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
IOUtils.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00
ImageLoadingHelper.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
LinkHelper.java correctly serialize custom spans to html (#2199) 2021-06-14 11:00:35 +02:00
ListStatusAccessibilityDelegate.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ListUtils.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
LiveDataUtil.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
LocaleManager.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
MediaUtils.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
NetworkState.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
NoUnderlineURLSpan.kt correctly serialize custom spans to html (#2199) 2021-06-14 11:00:35 +02:00
NotificationTypeConverter.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
PairedList.java fix IndexOutOfBoundException caused by ListStatusAccessibilityDelegate (#1178) 2019-04-07 16:32:58 +02:00
PickMediaFiles.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
Resource.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
RickRoll.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
RxAwareViewModel.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ShareShortcutHelper.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
SharedPreferencesExtensions.kt New settings (#891) 2018-11-12 21:09:39 +01:00
SmartLengthInputFilter.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
SpanUtils.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
StatusDisplayOptions.kt Add confirmation for favourite and bookmark actions (#2245) 2021-10-04 07:48:44 +02:00
StatusViewHelper.kt Highlight your own votes when displaying poll results (#2242) 2021-09-17 22:12:17 +02:00
StringUtils.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ThemeUtils.java Wellbeing mode (#1992) 2020-12-23 19:13:37 +01:00
TimestampUtils.java cleanup code in StatusViewHolders (#1418) 2019-07-27 21:53:28 +02:00
VersionUtils.java add test for VersionUtils (#1602) 2019-12-21 18:56:30 +01:00
ViewBindingExtensions.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ViewDataUtils.kt Timeline paging (#2238) 2022-01-11 19:00:29 +01:00
ViewExtensions.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00