Removing some folder customization options

The old folder preview and animation relied on creating bitmaps for transition.
As we move to hardware bitmaps, creating custom bitmaps which rely on icon bitmaps
would be costly (hardware bitmaps are immutable and cannot be drawn on a software canvas).

Bug: 35428783
Change-Id: I39869ed44feb6a886985ad15775bc1ab55565727
This commit is contained in:
Sunny Goyal
2017-09-08 11:59:05 -07:00
parent 17e780794b
commit add3d8322d
11 changed files with 64 additions and 507 deletions

View File

@@ -53,7 +53,6 @@ import com.android.launcher3.compat.PackageInstallerCompat;
import com.android.launcher3.compat.UserManagerCompat;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.folder.FolderIcon;
import com.android.launcher3.folder.FolderIconPreviewVerifier;
import com.android.launcher3.graphics.LauncherIcons;
import com.android.launcher3.logging.FileLog;
@@ -76,6 +75,8 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.CancellationException;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.MAX_NUM_ITEMS_IN_PREVIEW;
/**
* Runnable for the thread that loads the contents of the launcher:
* - workspace icons
@@ -734,7 +735,7 @@ public class LoaderTask implements Runnable {
numItemsInPreview++;
}
if (numItemsInPreview >= FolderIcon.NUM_ITEMS_IN_PREVIEW) {
if (numItemsInPreview >= MAX_NUM_ITEMS_IN_PREVIEW) {
break;
}
}