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

Commit 516866fb authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Fix wobbling animation

parent f7a132e5
Loading
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="deploymentTargetDropDown">
    <runningDeviceTargetSelectedWithDropDown>
      <Target>
        <type value="RUNNING_DEVICE_TARGET" />
        <deviceKey>
          <Key>
            <type value="VIRTUAL_DEVICE_PATH" />
            <value value="$USER_HOME$/.android/avd/Pixel_3a_XL_API_29.avd" />
          </Key>
        </deviceKey>
      </Target>
    </runningDeviceTargetSelectedWithDropDown>
    <targetSelectedWithDropDown>
      <Target>
        <type value="QUICK_BOOT_TARGET" />
+8 −4
Original line number Diff line number Diff line
@@ -1935,6 +1935,8 @@ public class LauncherPagedView extends PagedView<PageIndicatorDots> implements V
    public void startDrag(CellLayout.CellInfo cellInfo, DragOptions dragOptions) {
        View child = cellInfo.getCell();
        mDragInfo = cellInfo;
        // Clear any running animation.
        child.clearAnimation();
        child.setVisibility(GONE);
        beginDragShared(child, this, dragOptions);
    }
@@ -2382,14 +2384,16 @@ public class LauncherPagedView extends PagedView<PageIndicatorDots> implements V
                if(info instanceof ApplicationItem) {
                    ApplicationItem applicationItem = (ApplicationItem) info;
                    if (applicationItem.isSystemApp != ApplicationItem.FLAG_SYSTEM_UNKNOWN) {
                        if ((applicationItem.isSystemApp & ApplicationItem.FLAG_SYSTEM_NO) == 0) {
                            return false;
                        }
                        if ((applicationItem.isSystemApp & ApplicationItem.FLAG_SYSTEM_NO) != 0) {
                            ((IconTextView)v).applyUninstallIconState(true);
                        }
                    } else {
                        ((IconTextView)v).applyUninstallIconState(true);
                    }
                Log.d(TAG, "wobbleLayouts: "+info);
                } else {
                    ((IconTextView)v).applyUninstallIconState(true);
                }
            }

            if(itemIdx % 2 == 0) {
                v.startAnimation(wobbleAnimation);