summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FolderInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Update existing Folder items' ranks to match their pre-permutation ↵Jonathan Miranda2017-07-131-6/+0
| | | | | | | | layouts." This reverts commit c4b296a50ea50de64b377016e07ec041350489c8. Change-Id: Ieff7873edc3cb300fe454b0ad97d6f0b4f0cb5a9
* Update existing Folder items' ranks to match their pre-permutation layouts.Jon Miranda2017-06-281-0/+6
| | | | | | | | | | | | | | | | | | | With the new Folder permutation logic, we change the position of the items when they are added to a Folder. This means that existing Folders will now appear in a different order than the user arranged them in. This change makes sure that when a user upgrades, their existing Folders will appear untouched. Note: We decided to priotize restoring the original layout of the Folder, as opposed to making sure the preview items remain the same. This is less destructive of users' data (we're changing the window into the Folder, but not the location of items when the Folder is open). Bug: 63115141 Bug: 35064148 Change-Id: Ib0a28b4b50be089878ffc3e40bced89832e125bc
* Allow user to place PendingAddShortcutInfo in opened Folder.Jon Miranda2017-05-221-3/+11
| | | | | | | | Current implementation only allowed dropping PendingAddShortcutInfo on a FolderIcon. Bug: 37814579 Change-Id: Ice42421c34665b0ebf199945761c5c86614573a4
* Close Folder before doing any automatic updates.Jon Miranda2017-02-281-3/+3
| | | | | | | | | | We already close the Folder when Work Profile apps are auto added to the Work Profile Folder. This change extends that functionality to when apps are being auto removed from the Work Profile Folder. Bug: 35845161 Change-Id: I2aa6a6a0ed28a95f6a59a549430f91482583548b
* Close Folder when an item is auto added to it.Jon Miranda2017-02-221-0/+7
| | | | | | | | This can happen when items (as part of a Work Profile) are auto added to the Work profile Folder. Bug: 35628160 Change-Id: I29d3b277b0e9cd4bb238fb5aff9a52c6b9e764f8
* Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-161-5/+5
| | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
* Adding some widget addition flow testsSunny Goyal2017-01-231-1/+1
| | | | | | | > Added two dummy widget providers: with config and without config > Added tests for verify widget config flow Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a
* No more UserHandleCompatSunny Goyal2016-12-151-2/+2
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Adding a utility class to enforce that icons are always flattened onSunny Goyal2016-11-191-5/+5
| | | | | | | the background thread. Bug: 21325319 Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
* Refactoring floating view opening/closing logicSunny Goyal2016-10-101-5/+0
| | | | | | | | | > Creating a base view for floating panels with some common methods > Moving the getOpen method to individual classes > Moving the folder icon animation logic to folder icon > Moving all the logic related for opening folder to Folder class Change-Id: I898dfb6870b857cb921d2729b89618bc43ff2e88
* Unifying toString() method for various ItemInfo subclassesSunny Goyal2016-09-011-8/+0
| | | | Change-Id: I7cde42f0df412e2877fb93c77e74ee56a25edead
* instead of unbinding items from the loader, unregistering listenersSunny Goyal2016-05-171-10/+2
| | | | | | | in activity.onDestroy() Bug: 28740269 Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
* Revert "Wrapping folderLisners with weak reference, and storing it as an array"Sunny Goyal2016-05-171-24/+27
| | | | | | This reverts commit e48644a6cc3024399ee2c9509d42ef6c2770ef61. Change-Id: I7bd1d09cae42193de228cb58c08526eeaf57ec04
* Wrapping folderLisners with weak reference, and storing it as an arraySunny Goyal2016-05-171-27/+24
| | | | | | | | Storing as an array allows the listeners to be overriten on next bind. These changes remove the need to unbind the item Bug: 28740269 Change-Id: Ibbe4b760d64784fbe3075d18e2b946b366d631c5
* Fixing folder icon not getting redrawn when the contents changeSunny Goyal2016-04-061-7/+7
| | | | | | | | | | | | > Removing parent from ItemOperator as inconsistant values were being passed in workspace and folderPagedView > Fixing itemChanged causing multiple redraws, by passing a 'animate' parameter to explicitely request animation Bug:27740161 Bug:28015426 Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
* Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-3/+3
| | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* Refactoring ItemInfoSunny Goyal2015-06-301-2/+1
| | | | | | | | > Changing dragObject to ItemInfo > Removing dropPos which is always null > Removing requiresDbUpdate which is only used in CellLayout Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
* Do not trim folder titleSunny Goyal2015-05-211-1/+1
| | | | | Bug: 21297281 Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
* Merge "Animating the folder title & page indicator when a multi-page folder ↵Sunny Goyal2015-05-131-0/+5
|\ | | | | | | is opened for the first time" into ub-launcher3-burnaby
| * Animating the folder title & page indicator when a multi-page folderSunny Goyal2015-05-081-0/+5
| | | | | | | | | | | | is opened for the first time Change-Id: I70f5fd942724251a5e863fbb78a0c24f440b0283
* | Trim all whitespace from titles and labels.Winson Chung2015-05-081-1/+1
|/ | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Removes code that is incompatible with google3, Velvet build rules.Hyunyoung Song2015-04-301-1/+0
| | | | Change-Id: Ibce31b52f5ffc4a03bdd48c575521c774f17a353
* Goodbye folder sortingSunny Goyal2015-04-271-0/+1
| | | | | | > Removing all traces of folder sorting Change-Id: Id77a7745564c869f5c5c1b3a560bf606fe08b107
* Automatically adding managed profile shortcuts to homescreen.Sunny Goyal2015-04-101-2/+7
| | | | | | | | | | | | 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
* Adding sort switch in FolderPagedViewSunny Goyal2015-03-171-0/+32
| | | | | | | | | > Adding options column in DB to store generation purpose flags > Storing isSorted flag in FolderInfo > Adding a switch for A-Z sorting (only visible if pageCount > 1) > When in sorted mode, spring-load snaps to the target location for 1.5 seconds Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
* Launcher3 multi-profile supportKenny Guy2014-04-301-2/+6
| | | | | | | | | | | | | | | | | | | | | Use LauncherApps API and badging APIs instead of PackageManager. With compatability layer that uses PackageManager pre L. Adds support to show apps from current user and any managed profiles. Background: Managed profiles are user sandboxes that are visible from the primary user and can be launched as if they are a part of this user. A launcher should now be capable of listing apps from this user as well as related profiles of this user. Launching of activities is now via the LauncherApps interface, to allow for cross-profile app launching. Only activities with category LAUNCHER can be added as a shortcut on the workspace for a managed profile. Widgets and non-application shortcuts are only supported for the current profile. Widgets from the managed profile are not available. Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
* Fix source code so it compiles on google3Sameer Padala2014-04-211-1/+2
| | | | | | This is a follow up to cr/65191596 which checked for String + array warnings. Change-Id: Id70eaa32b63b838b03be21d632c7470039b6423f
* Make classes that extend ItemInfo public.Anjali Koppal2014-03-041-1/+1
| | | | | | | Also follow up on changes in ag/418520, adding Views to those method params. Change-Id: I93e0a3b30d10b969d1903a2f227f6744d709e89a
* Fixing crash in empty folders. (Bug 11627191)Winson Chung2013-12-091-2/+2
| | | | | | Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52 Signed-off-by: Winson Chung <winsonc@google.com>
* Revert "Fixing crash in empty folders. (Bug 11627191)"Winson Chung2013-12-101-2/+2
| | | | | | This reverts commit 68b667848ef7c6f69b24a40d780e4088a5f2a1fb. Change-Id: I51da495d6f8ef98b268c23cce02cce5ef1c7ea00
* Fixing crash in empty folders. (Bug 11627191)Winson Chung2013-12-091-2/+2
| | | | Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52
* Ensuring that the db reflects all package added/removed/updated broadcasts.Winson Chung2013-07-111-0/+8
| | | | | | - Also ensuring that newly added pages are added before the empty page Change-Id: I97a01f791c438aa5c5b1fd770d3536b449a871bc
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+111
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b