Merge "Updating portals visuals:"

This commit is contained in:
Adam Cohen
2011-07-27 11:58:22 -07:00
committed by Android (Google) Code Review
16 changed files with 63 additions and 5 deletions

View File

@@ -71,6 +71,8 @@ public class FolderIcon extends LinearLayout implements FolderListener {
// (0 means it's not scaled at all, 1 means it's scaled to nothing)
private static final float PERSPECTIVE_SCALE_FACTOR = 0.35f;
public static Drawable sSharedFolderLeaveBehind = null;
private ImageView mPreviewBackground;
private BubbleTextView mFolderName;
@@ -135,6 +137,11 @@ public class FolderIcon extends LinearLayout implements FolderListener {
folderInfo.addListener(icon);
Resources res = launcher.getResources();
if (sSharedFolderLeaveBehind == null) {
sSharedFolderLeaveBehind = res.getDrawable(R.drawable.portal_ring_rest);
}
return icon;
}
@@ -259,7 +266,7 @@ public class FolderIcon extends LinearLayout implements FolderListener {
final int itemType = item.itemType;
return ((itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION ||
itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) &&
!mFolder.isFull() && item != mInfo);
!mFolder.isFull() && item != mInfo && !mInfo.opened);
}
public boolean acceptDrop(Object dragInfo) {