summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Make workspace layout configurable by prebundled mcccretin452016-05-111-1/+48
| | | | | | | | | Ported patch: http://review.cyanogenmod.org/#/c/111725/ Issue-id: PAELLA-236 Change-Id: I1d02cfc4f1e7e7fc5b1aaf326072b0ffe8966c05 (cherry picked from commit fe7faac0dba67667ae671e6cf59c9706d45e579b)
* Trebuchet : Update default workspace for dialerRichard MacGregor2016-04-261-1/+6
| | | | | | | Ticket CD-544 Change-Id: I47602367254732390ff73ae4676e569b7f27b819 (cherry picked from commit 0c86fc125cd8cea0ed0f6c4827d159b56709e1cf)
* Trebuchet: Fix some issues with the DB upgrade pathcretin452016-03-151-14/+21
| | | | | | Issue-id: CYNGNOS-2249 Change-Id: If124a9ac51c665c869cf5a745390374658b87156
* Port Remote Folder from 12.1 to 13.Tyson Miller2016-01-281-4/+17
| | | | Change-Id: If8cf9d5f054e8948ead702883b79f28db26c4d8b
* Trebuchet: Add Snap to hotseatMichael Bestas2016-01-081-0/+6
| | | | | | | * Also migrate from Camera2 shortcuts, allowing to toggle easily between the two apps Change-Id: I98bf454d97d9afc0b9720cc7a36f7a3c7bab2c61
* Trebuchet: Add migration for new messaging appcretin452015-12-221-15/+16
| | | | | | Issue-id: CYNGNOS-1422 Change-Id: Iaf64cdba4333703a73c72997c1ddc353ecdcd24b
* Trebuchet: Add DB migrationcretin452015-12-091-6/+165
| | | | Change-Id: Ic470848380ede33ba52e71d453d5328a23160b48
* Re-Implementation of hidden foldersVineet Patil2015-11-301-2/+6
| | | | Change-Id: I2cdb881eb6a2608279d30a1cdfc1327a89ae7693
* Restoring provider behavior for reloading app on old devicesSunny Goyal2015-09-091-4/+16
| | | | | | | | | > For older devices, launcher will only reload in case of inserts with specific query parameters > For older devices, launcehr will notify content observers of any internal inserts > Chaning TAG for Launcher provider as max logging tag is only 23 characters Bug: 23821706 Change-Id: I32891387612d967c41ddae848c43dc4b1de1b0e9
* Version code cleanupSunny Goyal2015-08-171-1/+1
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Reloading launcher whenever there is an external update to contentprovider, ↵Sunny Goyal2015-08-131-13/+16
| | | | | | irrespective of the uri Change-Id: If1a06da57171be30adb74f09ac256a8b03ab8549
* Homescreen migration from a larger grid to a smaller grid.Sunny Goyal2015-07-311-1/+1
| | | | | | | | | | | | Adding support for restoring from a larger device, if the grid size difference is not more that 1. During restore add all the items in the DB, and run a one-time migration the next time launcher starts. The migration strategy is defined in ShrinkWorkspaceTask.java which involves resizing, moving and removing some items. Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
* Fixing shortcuts not getting migrated to app iconsSunny Goyal2015-07-131-1/+1
| | | | | Bug: 22410445 Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
* Fixing backup restoreSunny Goyal2015-06-251-1/+1
| | | | | | | | | | | | | | | > Not deleting icons from cache, which have not been restored yet > Not checking if activity exists during DB migration. Missing components are removed during loader anyway > Backing up and restoring bitmaps even when iconType is resource. This allows us to show a proper bitmap icon, until the correct resource is available. > Loading proper shortcutResource icon for promiseIcons > Checking against promise intent when verifying duplicates > A launcher App intent can contain EXTRA_PROFILE Bug: 22094970 Change-Id: I982971338846733833ec133119393af0bea0eb08
* Merge "Deleting empty folders based on DB state" into ub-launcher3-burnabySunny Goyal2015-06-181-0/+37
|\
| * Deleting empty folders based on DB stateSunny Goyal2015-06-121-0/+37
| | | | | | | | | | | | | | | | | | > Previously folders were getting deleted based on in-memory loader state. If for some reason, an item failed to load, we would delete the folder from DB as well. Bug: 21354058 Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
* | Fixing nullpointer when creating new DBSunny Goyal2015-06-161-13/+13
| | | | | | | | | | LauncherProvider is not ready until the DBHelper is created Change-Id: Iabd61005892f15fd4a31d882100d87df2b2a7b85
* | Removing ContentObserver in launcherSunny Goyal2015-06-161-23/+22
|/ | | | | | | > Using callback insted of using a content observer > Setting the listener in LauncherAppState to prevent resource leak Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
* Using content provider to update launcher settingsSunny Goyal2015-06-121-0/+34
| | | | | | | | > Removing cross process preference file > Removed broadcast listener management for settings changes > Defining content provider method to get/set laucnehr preferences Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
* Code cleanupSunny Goyal2015-06-051-2/+0
| | | | | | | | > Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
* Removing some synthetic method creationSunny Goyal2015-06-021-2/+2
| | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* Refactoring DeviceProfileAdam Cohen2015-05-211-6/+6
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Icons are not updated to TYPE_APPLICATION during restoreSunny Goyal2015-05-211-3/+10
| | | | | | | | | | > Use low res only for app shortcuts > Running icon migration after restore > Running icon migration again for all users > Deduping shortcuts added from widget tray Bug: 20945600 Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
* Prevent work folder creation when launcher is upgraded.Sunny Goyal2015-05-121-2/+8
| | | | Change-Id: If7a91e0852dae1bf5dcf21e89c1771b5f37629f3
* Removing LauncherProvider dependency from LauncherSettingsSunny Goyal2015-04-171-2/+2
| | | | | | | | > This ensures that the classLoader does not need to load LauncherProvider to access LauncherSettings > Making a few fields public. Change-Id: I2e8ee6e169552739f09e500d3b6acbcee7cd0718
* Deduping shortcuts to app-shortcuts if they have a valid intentSunny Goyal2015-04-101-3/+62
| | | | | | | > Only deduping shortcuts for the primary user as custom shortcuts for secondary users is not supported. Change-Id: If129dee64a395602006ebb996d4b09b93b89084f
* Adding nullcheck when getting app restrictionsSunny Goyal2015-04-061-1/+4
| | | | | Bug: 20085185 Change-Id: I782a79a331a2d58287e34e24ed7730207bf260cb
* Removing ContentObserver from LauncherModel, and calling reloadSunny Goyal2015-04-011-12/+14
| | | | | | whereever necessary Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
* Configuration of workspace through app restrictionsSunny Goyal2015-03-271-6/+47
| | | | | | > Checking for a grid specific layout before loading the default layout Change-Id: I1e8d4176341e61d0876b0a9bea9ad8010e3a0f6a
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-8/+9
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Adding sort switch in FolderPagedViewSunny Goyal2015-03-171-22/+21
| | | | | | | | | > 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
* Merge "Refactoring max id logic to a common method" into ub-launcher3-burnabySunny Goyal2015-03-091-36/+23
|\
| * Refactoring max id logic to a common methodSunny Goyal2015-03-041-36/+23
| | | | | | | | Change-Id: I1f649b570ee43d6c0540a207693d2cbee4538fb8
* | am c6c8fef3: Clearing DB if necessary, when applying the default layoutSunny Goyal2015-03-051-0/+4
|\ \ | |/ |/| | | | | * commit 'c6c8fef3e90f84b26c3b8550ec6a1d668ca9200d': Clearing DB if necessary, when applying the default layout
| * Clearing DB if necessary, when applying the default layoutSunny Goyal2015-03-041-0/+4
| | | | | | | | | | Bug: 19574498 Change-Id: I34850d9a7f7316bcc2cb9fc8a5be57d2488c16a6
* | Merge "Setting workspace id as primary key" into ub-launcher3-burnabySunny Goyal2015-03-021-4/+57
|\ \
| * | Setting workspace id as primary keySunny Goyal2015-02-271-4/+57
| | | | | | | | | | | | | | | Bug: 19475231 Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
* | | am e72f3d53: Fixing wronk rowID check.Sunny Goyal2015-03-021-1/+1
|\ \ \ | |/ / |/| / | |/ | | * commit 'e72f3d53f8c35b94aece6fafa6fd12cce9d09fe5': Fixing wronk rowID check.
| * Fixing wronk rowID check.Sunny Goyal2015-03-021-1/+1
| | | | | | | | | | | | | | | | Since screenId is changed to primary key, the rowId can now be 0 (earlier it was auto-increment and never 0) Bug: 19566734 Change-Id: Icf0e4294a581039101df1ad1756fdb6e581c4cba
| * DO NOT MERGE: Setting workspace id as primary keySunny Goyal2015-02-251-3/+58
| | | | | | | | | | Bug: 19475231 Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
* | Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-masterSunny Goyal2015-02-121-21/+2
|\ \
| * | Removing code for the unused 'upgrade path'Sunny Goyal2015-02-111-21/+2
| | | | | | | | | | | | Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
* | | am c87775d8: Fixing rank migration code to handle null values correctly.Sunny Goyal2015-02-111-1/+2
|\ \ \ | |/ / |/| / | |/ | | * commit 'c87775d8e63c7b5722c23ef95c782f574b847d73': Fixing rank migration code to handle null values correctly.
| * Fixing rank migration code to handle null values correctly.Sunny Goyal2015-02-101-1/+2
| | | | | | | | | | Bug: 19297508 Change-Id: I652ef30ab37f5b09204f0388de8e065d64b7724d
* | am a258f812: Modify strict mode thread policy for LauncherProvider.Nilesh Agrawal2015-01-261-1/+1
|\| | | | | | | | | * commit 'a258f812fac21767d1f2e61ee7a7a58bfe6da582': Modify strict mode thread policy for LauncherProvider.
| * Modify strict mode thread policy for LauncherProvider.Nilesh Agrawal2015-01-261-1/+1
| | | | | | | | | | | | | | Allowing thread writes too as SQLiteOpenHelper.getWritableDatabase needs it. Bug: 19094644 Change-Id: I39fe97a9e7fc07c38a4f8e5c5979196b742e36bf
* | am fde11852: Add strict mode exception in LauncherProvider.Nilesh Agrawal2015-01-211-0/+3
|\| | | | | | | | | * commit 'fde11852cf0f91c4500a93dfffb44c1b86991e6e': Add strict mode exception in LauncherProvider.
| * Add strict mode exception in LauncherProvider.Nilesh Agrawal2015-01-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | Content providers are created during process startup (before Application.onCreate), and we should not be doing expensive stuff in Provider.onCreate Adding an exception for now as it looks like LauncherProvider initialization is needed before we can show meaningful UI. Bug: 19094644 Change-Id: I860c2934c110d3a43f1a3afa00729077dc64796c
* | Changing DB upgrade path to use swith case statement.Sunny Goyal2015-01-211-104/+86
|/ | | | | | | > This allows to cancel the whole upgrade path if any one step fails and reset the DB Change-Id: I645b74af8afcd21dda0d619691a5fb3dbf1a04c0
* Adding a rank column for itemInfoSunny Goyal2015-01-131-2/+46
| | | | | | | | > Rank is used to determine position of an item in a folder. Bug: 18590192 Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f