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

Fix wobbling animation

parent f7a132e5
Pipeline #129248 passed with stage
in 4 minutes and 24 seconds
<?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" />
......
......@@ -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,13 +2384,15 @@ 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);
}
} else {
((IconTextView)v).applyUninstallIconState(true);
}
Log.d(TAG, "wobbleLayouts: "+info);
((IconTextView)v).applyUninstallIconState(true);
}
if(itemIdx % 2 == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment