mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Automatically adding managed profile shortcuts to homescreen.
When the managed profile is created, a "Work" folder is created and added to the homescreen. All work profile apps are added to this folder and icons for subsequent installs (withing a fixed time frame) are automatically added to this folder. If this folder get deleted or the time-frame expires, icon for any new install is placed on the homescreen. Bug: 17410319 Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
This commit is contained in:
@@ -36,6 +36,11 @@ public class FolderInfo extends ItemInfo {
|
||||
*/
|
||||
public static final int FLAG_ITEMS_SORTED = 0x00000001;
|
||||
|
||||
/**
|
||||
* It is a work folder
|
||||
*/
|
||||
public static final int FLAG_WORK_FOLDER = 0x00000002;
|
||||
|
||||
/**
|
||||
* Whether this folder has been opened
|
||||
*/
|
||||
@@ -46,11 +51,11 @@ public class FolderInfo extends ItemInfo {
|
||||
/**
|
||||
* The apps and shortcuts
|
||||
*/
|
||||
ArrayList<ShortcutInfo> contents = new ArrayList<ShortcutInfo>();
|
||||
public ArrayList<ShortcutInfo> contents = new ArrayList<ShortcutInfo>();
|
||||
|
||||
ArrayList<FolderListener> listeners = new ArrayList<FolderListener>();
|
||||
|
||||
FolderInfo() {
|
||||
public FolderInfo() {
|
||||
itemType = LauncherSettings.Favorites.ITEM_TYPE_FOLDER;
|
||||
user = UserHandleCompat.myUserHandle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user