mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Merge "Updating portals visuals:"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user