Removing unnecessary search header duplication

Bug: 268646258
Test: Verified on device
Change-Id: I33a7df6a523e5600dc6251c3d8feff1236362705
This commit is contained in:
Sunny Goyal committed 2023-02-10 11:26:05 -08:00
1 parent 740541e0a0
commit 62a4932310
16 files changed
+107 -433

No files matched your search

@@ -59,27 +59,12 @@ public abstract class WidgetsListBaseEntry {
@Rank
public abstract int getRank();
/**
* Marker interface for subclasses that are headers for widget list items.
*
* @param <T> The type of this class.
*/
public interface Header<T extends WidgetsListBaseEntry & Header<T>> {
/** Returns whether the widget list is currently expanded. */
boolean isWidgetListShown();
/** Returns a copy of the item with the widget list shown. */
T withWidgetListShown();
}
@Retention(SOURCE)
@IntDef({RANK_WIDGETS_TOP_SPACE, RANK_WIDGETS_LIST_HEADER, RANK_WIDGETS_LIST_SEARCH_HEADER,
RANK_WIDGETS_LIST_CONTENT})
@IntDef({RANK_WIDGETS_TOP_SPACE, RANK_WIDGETS_LIST_HEADER, RANK_WIDGETS_LIST_CONTENT})
public @interface Rank {
}
public static final int RANK_WIDGETS_TOP_SPACE = 1;
public static final int RANK_WIDGETS_LIST_HEADER = 2;
public static final int RANK_WIDGETS_LIST_SEARCH_HEADER = 3;
public static final int RANK_WIDGETS_LIST_CONTENT = 4;
public static final int RANK_WIDGETS_LIST_CONTENT = 3;
}