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

Commit 95179cff authored by Winson Chung's avatar Winson Chung
Browse files

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
parent fa696568
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 =