Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dab12bc6 authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Fix embarrassing typo with saving app pairs

When saving app pairs, we should grab attributes[0] and attributes[1] instead of attributes[0] and attributes[0].

Fixes: 326854996
Test: App pairs saves the correct two apps
Flag: ACONFIG com.android.wm.shell.enable_app_pairs TEAMFOOD
Change-Id: I8d2fc4597cf1f1bd36bc0b910cc022c79a48f067
parent 6e9070a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ public class AppPairsController {
    public void saveAppPair(GroupedTaskView gtv) {
        TaskView.TaskIdAttributeContainer[] attributes = gtv.getTaskIdAttributeContainers();
        WorkspaceItemInfo recentsInfo1 = attributes[0].getItemInfo();
        WorkspaceItemInfo recentsInfo2 = attributes[0].getItemInfo();
        WorkspaceItemInfo recentsInfo2 = attributes[1].getItemInfo();
        WorkspaceItemInfo app1 = lookupLaunchableItem(recentsInfo1.getComponentKey());
        WorkspaceItemInfo app2 = lookupLaunchableItem(recentsInfo2.getComponentKey());