Merge "App Pairs: App pairs now save with automatic default name and custom split ratios" into main

This commit is contained in:
Jeremy Sim authored and Android (Google) Code Review committed 2023-10-04 00:06:57 +00:00
commit 4986aa85e5
10 files changed
+271 -53

No files matched your search

+5
View File
@@ -72,6 +72,7 @@ import com.android.app.animation.Interpolators;
import com.android.launcher3.accessibility.AccessibleDragListenerAdapter;
import com.android.launcher3.accessibility.WorkspaceAccessibilityHelper;
import com.android.launcher3.anim.PendingAnimation;
import com.android.launcher3.apppairs.AppPairIcon;
import com.android.launcher3.celllayout.CellLayoutLayoutParams;
import com.android.launcher3.celllayout.CellPosMapper;
import com.android.launcher3.celllayout.CellPosMapper.CellPos;
@@ -2862,6 +2863,10 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
view = FolderIcon.inflateFolderAndIcon(R.layout.folder_icon, mLauncher, cellLayout,
(FolderInfo) info);
break;
case LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR:
view = AppPairIcon.inflateIcon(R.layout.app_pair_icon, mLauncher, cellLayout,
(FolderInfo) info);
break;
default:
throw new IllegalStateException("Unknown item type: " + info.itemType);
}