summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/provider
Commit message (Collapse)AuthorAgeFilesLines
* Ensure app widget ids are restored after database is sanitized.Jon Miranda2019-05-141-3/+37
| | | | | | | | | Previously, it was possible for AppWidgetsRestoredReceiver to start the restore process before work profile has finished restoring which resulted in the work profile items being removed from the workspace. Bug: 131315856 Change-Id: I2f295a1ca91f1996522bcc8052aa139979526e3b
* Fix SDK check to use Utilities.ATLEAST_Q.Jon Miranda2019-05-081-1/+1
| | | | | Bug: 131315856 Change-Id: Ie1d00d85dd01da7e57f28e16f51a49962d734927
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-161-3/+3
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Make QSB_ON_FIRST_SCREEN a boolean.Jon Miranda2019-03-151-1/+1
| | | | | Bug: 118140522 Change-Id: Ic8e47e71f538b0b0caff6f630566665d05a65522
* Add launcher support for restoring work profile items onto workspace.Jon Miranda2019-03-071-18/+109
| | | | | Bug: 111301511 Change-Id: I40decf4c763401c97afcc2bfa7954a1f3a03f536
* Adding support for backing up favorites tableSunny Goyal2019-01-033-11/+22
| | | | | | | | | | | Favorites table is copied as a separate table name during the first grid migration. On subsequent migrations this backup table is used if it exists, otherwise new backup is created. The backup table is also removed if there is any insert or delete operation on the db (outside of the migration operation itself). Bug: 111850268 Bug: 121048571 Change-Id: I6f02f4a355c369ee99d89430971be258f7516f6e
* Bye bye workspace screens tableSunny Goyal2018-12-102-82/+43
| | | | | | | | | | | | | Removing a separate table for workspace screens. List of screens are automatically parsed using the items in the favorites DB. Order of the screen based on the screen id and rearranging screens is no longer supported. In case the screens need to be rearranged, all the items in the favorites db will need to be updated with new screen ids. This makes backing up the DB (in the same database) easier as only one table needs to be duplicates. Change-Id: I8ba947a898f637d780e2f49925e78604263126e8
* Changing the format for device profile definitionSunny Goyal2018-12-071-8/+8
| | | | | | | | | Device profiles are defined such that the grid size is fixed and only the icon and text sizes change. For every grid size option there are multiple display configurations. Bug: 118758696 Change-Id: I54aac9106c576324b02530913c447e849b4ae1da
* Make flags UI available on release build of launcherRyan Lothian2018-10-151-1/+1
| | | | | | | The UI will only be shown on eng/userdebug platform builds. Bug: 117223984 Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
* Converting long item IDs to intSunny Goyal2018-10-084-36/+39
| | | | | | | | > Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
* Groundwork for runtime-toggleable feature flagsRyan Lothian2018-10-081-1/+1
| | | | | | | | | | This is the first step in adding a flag toggler UI to launcher. The change migrates a single flag (QSB_ON_FIRST_SCREEN) from a boolean constant to a boolean method. In future, that will allow us to return different values at runtime. Bug: 117223984 Change-Id: I1e62c91dd941b8145166021bc0aa157733e62ea0
* Retiring some feature flagsSunny Goyal2018-07-101-3/+0
| | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* Some launcher3 fixes so that it compiles with different configurationsSunny Goyal2018-05-301-0/+2
| | | | | Bug: 79996542 Change-Id: I4267aeb8f5b0714415970c63453049ff41466644
* Fixing widget id restore broadcast.Sunny Goyal2017-07-121-1/+1
| | | | | | | | | Ignoring thw broadcast if its not for the main widget host, or if the Launcher DB is already in use. Launcher already handles missing widget-Id map broadcast, by binding a new widgetId at runtime. Bug: 63389280 Change-Id: Iaa9774d6d7adde3711cba9615328020e2b2e66aa
* Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-091-13/+11
| | | | | | | | | AutoInstallsLayout, DefaultLayoutParser, ImportDataTask classes. Change-Id: Idcf1f5f020132ddf43751067a38a64bfc088800e Bug: 62466540 (cherry picked from commit 26453a297b622011258dc6b32403ba6586f00996)
* Adding a utility method for getting device prefsSunny Goyal2017-06-081-5/+2
| | | | Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
* Adding support for DB downgradeSunny Goyal2017-05-091-0/+2
| | | | | | | | Adding a schema file for handling DB downgrade. This schema file is part of the backup/restore set, and hence is available on a device with lower app version. Bug: 37257575 Change-Id: I69c8ef5f28d5209be6e6679412c7459d4eeda5d0
* Simplifying some DB managed logicSunny Goyal2017-04-192-27/+42
| | | | | | | | > Adding SQLiteTransaction to make it easier to manage DB transactions > Using try-with resource for better resource handling > Defining utility method for iterating over cursor Change-Id: I20b1a62d61798342825ecfeb971e1a0c63c9b6d7
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-2/+0
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Separating the config and flags in different directories so thatSunny Goyal2017-03-071-5/+5
| | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* Clean up around 1) Log.VERBOSE and 2) dumpHyunyoung Song2017-02-011-8/+2
| | | | | | | | | b/31772480 Note: in the follow up CL, I will add the dump result of the bgDataModel to a proto Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-112-6/+5
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Adding some logging around launcher restoreSunny Goyal2017-01-092-0/+4
| | | | | | | | > Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
* Removing static access to Context through LauncherAppStateSunny Goyal2016-12-291-3/+4
| | | | | Bug: 33032833 Change-Id: I09baaa6d79187b3096a2ab3a89d7dcaeaf9eee68
* No more UserHandleCompatSunny Goyal2016-12-151-2/+1
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Code sanitizationHyunyoung Song2016-10-061-1/+1
| | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* Adding a debug flag to prevent broken downlodas from getting removed duringSunny Goyal2016-08-291-5/+15
| | | | | | | | | restore After setting this flag apps do not need to have an active settion during restore which would simplyfy debugging backup-restore bugs. Change-Id: I89f2d3ec677281887f8bab8559ace991709caadc
* Fixing the hotseat import logicSunny Goyal2016-08-241-10/+21
| | | | | | | | | | | | | | | | | The import logic following the behavior: Improt everything and force run GridMigrationTask to automatically remove broken icons. This logic would fail for hotseat as the replacement happens before the GridMigrationTask, which will not replace the broken targets appropriately The cl changes some logic only for hotseat import > After import remove any broken icons/empty folders > When adding default icons, only add as much icons as required. Since GridMigrationTask uses weights, it sometimes removes imported icon, if the hotseat size becomes too large. Bug: 30909630 Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91
* Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal2016-07-091-0/+451
| | | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
* Removing Key-Value pair backup logic as Launcher now uses full-data backupSunny Goyal2016-06-231-2/+3
| | | | Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
* Adding a DB update path to handle the QSB position changeSunny Goyal2016-06-152-0/+230
| | | | | | | | > Renamed the id of 1st screen to 0 and making space for the QSB by running the grid migration task. > Added a feature flag to easily disable the QSB-in-workspace behavior Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
* Executing the DB migration during startup instead of restore.Sunny Goyal2016-06-081-0/+137
This allows proper execution of DB.onUpgrade task if the app updates after the restore Change-Id: I4c40167b30e1d7040b3a38be70d834f7b215e540