Fix regression in checking disabled state

- It should only check the disabled state after the icon graphic
  has been set

Fixes: 333017803
Test: Load with an app pair icon on the workspace
Change-Id: Ic313f98e1e31d673d774f050bb418d359b4bd653
Merged-In: I7242e0c525ef578a54a06fb9137fcfc42c6f0e86
This commit is contained in:
Winson Chung
2024-04-05 18:49:52 +00:00
parent fa696568e5
commit 95179cffab

View File

@@ -97,12 +97,12 @@ public class AppPairIcon extends FrameLayout implements DraggableView, Reorderab
icon.mInfo = appPairInfo;
icon.mContainer = container;
icon.checkDisabledState();
// Set up icon drawable area
icon.mIconGraphic = icon.findViewById(R.id.app_pair_icon_graphic);
icon.mIconGraphic.init(icon, container);
icon.checkDisabledState();
// Set up app pair title
icon.mAppPairName = icon.findViewById(R.id.app_pair_icon_name);
FrameLayout.LayoutParams lp =