Launcher state management cleanup

> Removing Widgets and related states
> Fixing different durations being used when opening/closing all-apps
> Removing some unnecessary object allocations when changing state without animation
> Differentiating widget bootm sheel and full sheet in logs

Bug: 67678570
Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
This commit is contained in:
Sunny Goyal
2017-10-16 11:46:41 -07:00
parent 1797af41d1
commit aeb1643ec6
24 changed files with 520 additions and 636 deletions

View File

@@ -16,6 +16,9 @@
package com.android.launcher3.folder;
import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.MAX_NUM_ITEMS_IN_PREVIEW;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
@@ -45,8 +48,6 @@ import com.android.launcher3.util.Themes;
import java.util.List;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.MAX_NUM_ITEMS_IN_PREVIEW;
/**
* Manages the opening and closing animations for a {@link Folder}.
*
@@ -77,19 +78,6 @@ public class FolderAnimationManager {
private final PreviewItemDrawingParams mTmpParams = new PreviewItemDrawingParams(0, 0, 0, 0);
private static final Property<View, Float> SCALE_PROPERTY =
new Property<View, Float>(Float.class, "scale") {
@Override
public Float get(View view) {
return view.getScaleX();
}
@Override
public void set(View view, Float scale) {
view.setScaleX(scale);
view.setScaleY(scale);
}
};
public FolderAnimationManager(Folder folder, boolean isOpening) {
mFolder = folder;