detail: diff instead of replace when resorting

Completely rework the detail list implementations so that resorting the
song list causes a replace operation instead of a diff operation.

This finally makes the list experience consistent across the app.
This commit is contained in:
Alexander Capehart
2023-01-18 16:47:50 -07:00
parent f7bf12c4a5
commit 0c69a35e80
31 changed files with 315 additions and 148 deletions
@@ -83,7 +83,7 @@ import java.util.Map;
* window-like. For BottomSheetDialog use {@link BottomSheetDialog#setTitle(int)}, and for
* BottomSheetDialogFragment use {@link ViewCompat#setAccessibilityPaneTitle(View, CharSequence)}.
*
* Modified at several points by Alexander Capehart backport miscellaneous fixes not currently
* Modified at several points by Alexander Capehart to backport miscellaneous fixes not currently
* obtainable in the currently used MDC library.
*/
public class BackportBottomSheetBehavior<V extends View> extends CoordinatorLayout.Behavior<V> {
@@ -53,6 +53,9 @@ import com.google.android.material.resources.MaterialResources;
* layoutManager.getOrientation());
* recyclerView.addItemDecoration(dividerItemDecoration);
* </pre>
*
* Modified at several points by Alexander Capehart to backport miscellaneous fixes not currently
* obtainable in the currently used MDC library.
*/
public class BackportMaterialDividerItemDecoration extends ItemDecoration {
public static final int HORIZONTAL = LinearLayout.HORIZONTAL;