From edbe507262cae69596efcada65f07c73e3224ed4 Mon Sep 17 00:00:00 2001 From: Sergey Vlasenko Date: Wed, 10 Apr 2024 17:39:24 +0300 Subject: [PATCH] fix pull issues --- .../adapters/DelegationListAdapter.kt | 13 ------------- .../roboswag/views/widget/LoadingContentView.kt | 1 - 2 files changed, 14 deletions(-) diff --git a/recyclerview-adapters/src/main/java/ru/touchin/roboswag/recyclerview_adapters/adapters/DelegationListAdapter.kt b/recyclerview-adapters/src/main/java/ru/touchin/roboswag/recyclerview_adapters/adapters/DelegationListAdapter.kt index 176a89d..2320911 100644 --- a/recyclerview-adapters/src/main/java/ru/touchin/roboswag/recyclerview_adapters/adapters/DelegationListAdapter.kt +++ b/recyclerview-adapters/src/main/java/ru/touchin/roboswag/recyclerview_adapters/adapters/DelegationListAdapter.kt @@ -92,19 +92,6 @@ open class DelegationListAdapter(config: AsyncDifferConfig) : Recy submitList(list) } - /** - * Submits a new list to be diffed, and displayed. - * - * The commit callback can be used to know when the List is committed, but note that it - * may not be executed. If List B is submitted immediately after List A, and is - * committed directly, the callback associated with List A will not be run. - * - * @param newList The new List. - * @param commitCallback Optional runnable that is executed when the List is committed, if - * it is committed. - */ - fun submitList(list: List?, commitCallback: (() -> Unit)?) = differ.submitList(list, commitCallback) - /** * Get the current List - any diffing to present this list has already been computed and * dispatched via the ListUpdateCallback. diff --git a/views/src/main/java/ru/touchin/roboswag/views/widget/LoadingContentView.kt b/views/src/main/java/ru/touchin/roboswag/views/widget/LoadingContentView.kt index 3d92f19..5a6bfae 100644 --- a/views/src/main/java/ru/touchin/roboswag/views/widget/LoadingContentView.kt +++ b/views/src/main/java/ru/touchin/roboswag/views/widget/LoadingContentView.kt @@ -57,7 +57,6 @@ class LoadingContentView @JvmOverloads constructor( errorRepeatButton.text = state.repeatButtonText showChild(R.id.error_with_repeat) } - else -> Unit } } }