summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/provider/ImportDataTask.java
AgeCommit message (Collapse)Author
2021-07-28Removing GridMigrationTask-v1 since it has been disabled for a whileSunny Goyal
Also removing some data migration support Bug: 194937047 Test: Presubmit Change-Id: I392a5f6e49ec170f63056a7664de47229896f390
2021-04-12Add support for having more hotseat icons in the DB than we showTony Wickham
Split InvariantDeviceProfile#numHotseatIcons into two variables: numDatabaseHotseatIcons and numShownHotseatIcons. These are generally the same, but different DisplayOptions within the same GridOption can choose to show different numbers of hotseat icons while sharing the same database. numDatabaseHotseatIcons is used for all reading/writing/migrating purposes, while numShownHotseatIcons determines how many Hotseat icons to show in the UI. Test: Existing tests pass, added two new migration tests Bug: 184789479 Bug: 171917176 Change-Id: I54583504f61a47a4444b6a637ebb7e3ab31528b7
2020-04-09Moving model data structures to a separate fileSunny Goyal
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2019-12-11Removing static instances of UserManagerCompat and AppWidgetManagerSunny Goyal
> Changing the lifecycle to follow other static objects in Launcher > Removing compat interface and inlining everything to helpers Bug: 141376165 Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
2019-07-17Moving some utilities methods to separate classSunny Goyal
Change-Id: I5094b22ddc77c45590cea1a5f5dead0dc7580abf
2019-03-15Make QSB_ON_FIRST_SCREEN a boolean.Jon Miranda
Bug: 118140522 Change-Id: Ic8e47e71f538b0b0caff6f630566665d05a65522
2018-12-10Bye bye workspace screens tableSunny Goyal
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
2018-12-07Changing the format for device profile definitionSunny Goyal
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
2018-10-15Make flags UI available on release build of launcherRyan Lothian
The UI will only be shown on eng/userdebug platform builds. Bug: 117223984 Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
2018-10-08Converting long item IDs to intSunny Goyal
> 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
2018-10-08Groundwork for runtime-toggleable feature flagsRyan Lothian
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
2018-07-10Retiring some feature flagsSunny Goyal
Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
2018-05-30Some launcher3 fixes so that it compiles with different configurationsSunny Goyal
Bug: 79996542 Change-Id: I4267aeb8f5b0714415970c63453049ff41466644
2017-06-09Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar
AutoInstallsLayout, DefaultLayoutParser, ImportDataTask classes. Change-Id: Idcf1f5f020132ddf43751067a38a64bfc088800e Bug: 62466540
2017-06-08Adding a utility method for getting device prefsSunny Goyal
Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
2017-03-07Separating the config and flags in different directories so thatSunny Goyal
it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
2017-01-11Removing static Context access using LauncherAppStateSunny Goyal
> This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
2017-01-09Adding some logging around launcher restoreSunny Goyal
> Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
2016-12-15No more UserHandleCompatSunny Goyal
Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
2016-08-24Fixing the hotseat import logicSunny Goyal
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
2016-07-09Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal
provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444