Migrate hotseat items into a folder

If feature flag HOTSEAT_MIGRATE_TO_FOLDER is enabled, this moves hotseat
items into a folder in the workspace. If not, it moves the whole hotseat
to the first workspace page that can host the hotseat.

Bug: 151099421
Test: Manual
Change-Id: I49f6a22a0ada2c4cf237ca91a323a46346a11a59
This commit is contained in:
Samuel Fufa
2020-03-09 18:24:47 -07:00
parent ef1d1b93e4
commit 82bbdaceae
9 changed files with 366 additions and 193 deletions

View File

@@ -180,7 +180,10 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
return null;
}
protected static <T extends AbstractFloatingView> T getOpenView(
/**
* Returns a view matching FloatingViewType
*/
public static <T extends AbstractFloatingView> T getOpenView(
ActivityContext activity, @FloatingViewType int type) {
BaseDragLayer dragLayer = activity.getDragLayer();
if (dragLayer == null) return null;