Commit Graph

431 Commits

Author SHA1 Message Date
Adam Cohen
76a47a1b22 Small refactor to separate adding workspace / all apps items
Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
2014-02-05 13:05:02 -08:00
Chris Wren
f4d081107f handle shortcut restore for missing packages
Bug: 10778992
Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
2014-01-27 17:30:48 -05:00
Adam Cohen
556f6135f9 Don't migrate shortcuts for components that no longer exist
Bug 12570791

Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
2014-01-15 23:32:46 +00:00
Winson Chung
e43a1e7882 Tightening migration conditions. (Bug 11973614)
Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
2014-01-15 11:34:54 -08:00
Winson Chung
234b506f46 Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermit 2014-01-10 23:40:40 +00:00
Winson Chung
a694524047 Adding migration Clings. (Bug 11973614)
- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
2014-01-10 22:28:16 +00:00
Adam Cohen
8b5b05b7f3 Merge "New launcher2 icon migration algorithm." into jb-ub-now-kermit 2014-01-10 21:42:39 +00:00
Dan Sandler
d502404a44 New launcher2 icon migration algorithm.
The user will be able to request "icon migration", which is
not a direct mapping of the old workspace, but rather
follows this heuristic for bringing the user's favorite
icons (by dint of their existence on the workspace) into
Launcher3:

Workspace shortcuts are placed in lexicographic order on the workspace
starting at screen 0 (leaving the bottom row of screen 0 empty to make
sure there's room to move things around). Folders are preserved and
their contents sorted. Duplicate icons (that is, shortcuts
with the same intent, pursuant to some cleanups) are removed.

Hotseat icons are migrated in their original place, unless their new
location is not accommodated by the hotseat (i.e. the L3 hotseat is
too small on this device), in which case they're treated like any
other shortcut and tossed into the workspace.

To test, turn on Launcher.ENABLE_DEBUG_INTENTS and then:

$ adb shell am broadcast -a com.android.launcher3.action.DELETE_DATABASE
$ adb shell am broadcast -a com.android.launcher3.action.MIGRATE_DATABASE

Bug: 12416411
Change-Id: Ia5c56f36c11455867ea20a39f70210f595020a87
2014-01-10 15:49:51 -05:00
Nilesh Agrawal
16f3ea870a Allow DISABLE_ALL_APPS to be set using a system property.
- Moving the property to LauncherAppState
 - The property is only read on dogfood builds.

The property can be set using setprop or /data/local.prop

Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
2014-01-09 17:21:09 -08:00
Winson Chung
3ee4a474f2 Accounting for new Package event extras when updating forward-locked apps. (Bug 11855584)
Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
2014-01-08 14:05:08 -08:00
Michael Jurka
34c2e6cf7a Clean up imports 2013-12-13 16:20:53 +01:00
Adam Cohen
ae4409dea9 Don't load items which exceed the grid bounds
-> Unified location where this is managed (with other placement verification)
-> For now, not deleting out of bounds items, but can turn it on in one line

Change-Id: I5e1a5cd357d80475ae40af7b89a0cd372d5c241b
2013-12-11 17:46:39 -08:00
Dan Sandler
a40916d534 Merge "Size hotseat data structure appropriately." into jb-ub-now-kermit 2013-12-11 15:03:02 +00:00
Dan Sandler
295ae18d0f Size hotseat data structure appropriately.
Bug: 12070213
Change-Id: I4df2f4bcc71bb4077c62cae91ed844ea8c43d421
2013-12-10 16:10:53 -05:00
Derek Prothro
7aff399974 Bind the workspace synchronously if started on -1 screen.
Previously, LoaderTask would be run asynchronously to bind
the workspace when started on -1 which would cause the user's
wallpaper to briefly flash when rotating the device on -1.

Bug: 11802691
Change-Id: I3a1a7a32fa28a81e041a283a93d808d5a8884133
2013-12-10 15:05:41 -05:00
Winson Chung
33231f587e Fixing crash in empty folders. (Bug 11627191)
Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52

Signed-off-by: Winson Chung <winsonc@google.com>
2013-12-09 17:24:48 -08:00
Winson Chung
72b520c956 Revert "Fixing crash in empty folders. (Bug 11627191)"
This reverts commit 68b667848e.

Change-Id: I51da495d6f8ef98b268c23cce02cce5ef1c7ea00
2013-12-10 01:17:03 +00:00
Winson Chung
68b667848e Fixing crash in empty folders. (Bug 11627191)
Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52
2013-12-09 16:57:45 -08:00
Adam Cohen
b0ee08109e Add guards for restoreInstanceState (issue 11982812)
Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
2013-12-03 10:52:21 -08:00
Adam Cohen
d8dbb46468 Fix binding problem with no screens (issue 11768766)
Change-Id: I0a296892d4964913f38bf6d7bd2c2b17e1e0e8e0
2013-11-27 11:58:48 -08:00
Dan Sandler
f0b8dacf15 Disable importing workspaces from Launcher2.
Bug: 9832552
Bug: 11761032
Change-Id: I4dfd16046e9d6d0d1d864dff4340b0ed13cc8b8f
2013-11-19 19:31:04 +00:00
Winson Chung
9b9fb967b2 Updating LauncherModel filtering to use screen ids. (Bug 11685286)
- Fixes the issue with the current page not synchronously binding

Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
2013-11-15 15:46:27 -08:00
Winson Chung
603d19a333 Merge "Additional logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf 2013-11-15 21:27:34 +00:00
Winson Chung
9f9f00bca6 Additional logs to track down missing workspace screen. (Bug 11683562)
Change-Id: I4f6b3c3ae07e2069bad01940dfce6bdc9cdb0ae0
2013-11-15 13:27:00 -08:00
Winson Chung
28b690ab8e Merge "Adding logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf 2013-11-15 21:11:22 +00:00
Winson Chung
a90303bb6f Adding logs to track down missing workspace screen. (Bug 11683562)
Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
2013-11-15 13:10:03 -08:00
Winson Chung
fe9d96a396 Require valid arrays when adding and binding new Apps. (Bug 11627095)
Change-Id: I8f2a4dc70bf376d804885f433ab20064823ebaac
2013-11-14 11:30:05 -08:00
Adam Cohen
b9ada65af3 Uncommenting throw when item not contained in sBgItemsIdMap
-> Improving logging for issue 11580149

Change-Id: I10ce7c4b54a6435302d33bbeba4e8600f69d4920
2013-11-08 08:26:33 -08:00
Winson Chung
df95eb12a4 Ensuring disabled packages remove all components on the workspace. (Bug 11172454) 2013-10-16 14:57:19 -07:00
Winson Chung
5801ef048a Lazy load default app icon in LauncherModel. (Bug 11203738)
Change-Id: I397b532f247309de9ae5636b51f125f639966696
2013-10-16 13:46:28 -07:00
Chris Wren
e523e70f75 move the provider authority to a config class
Bug: 10816034
Change-Id: I68364081f039f94205b805a1510eb04e6f0f40a2
2013-10-09 12:41:09 -04:00
Winson Chung
8741298d3c Fixing issue with numerous empty screens showing when adding a shortcut to a clear workspace. (Bug 10785413)
Change-Id: Ib9b5f76dc23e609b1774147a6cf760f185d9154b
2013-10-03 18:46:06 -07:00
Bjorn Bringert
1307f63f8a Add a better app filtering mechanism and filter widgets
The old one didn't use the app filter when packages
were added or updated, only in the initial load.

The app filter is now also used for appwidget providers.

Bug: 10895858
Bug: 10898990
Change-Id: Id29bbc3cf7bdb0c360edd92f768b86684bd338ed
2013-10-03 23:40:34 +01:00
Winson Chung
0f84a60456 Ensuring that we always update the container when modifying an item in the db. (Bug 11008354)
Change-Id: I82748565c878a212bdef1bffbf21f2a3fea09314
2013-09-30 14:32:58 -07:00
Winson Chung
780fe59a7a Integrating some aosp fixes, ensuring that we update the install queue before returning to Launcher.
- Fixing stuck page in All Apps (Bug 9347818)
- Fixing shortcuts to uninstalled apps from being installed (Bug 10726510)
- Consolidating vibration feedback
- Ensuring that we trim names during comparison in AllApps list

Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
2013-09-26 16:17:07 -07:00
Michael Jurka
eb1bb92050 Recover when reading corrupted widget previews
Bug: 10785722
2013-09-26 11:29:06 -07:00
Winson Chung
94d6768c65 Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)
Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
2013-09-25 17:59:45 -07:00
Winson Chung
a0b7e86299 Removing any overlapping items with the hotseat.
Change-Id: I9634939e6b1e8905d232d5a30608e2c56071d7bc
2013-09-25 14:22:39 -04:00
Winson Chung
ede4129e77 Removing old debugging logs. (Bug 107442854)
Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
2013-09-19 16:28:20 -07:00
Chris Wren
c3919c0e99 fixup missing providers on load.
Bug: 10779026
Change-Id: I0a9fc43258623c233c7ba89a9e9f1dee97800967
2013-09-18 13:37:20 -04:00
Winson Chung
11a1a53651 Fixing issue with folders not showing up.
- Add long click on empty spaces in hotseat to show overview mode
- Limit the height of all apps to the workspace + hotseat size
- Fixing some comments

Change-Id: Ie5a97a8b04e449385e2b3f6230079aebf8e15d5a
2013-09-13 11:40:05 -07:00
Bjorn Bringert
85f418d0f5 Allow Launcher class to hide activities from All Apps
There are a few questions for the launcher team
embedded in comments.

Bug: 10645210
Bug: 10551568
Change-Id: I67ad10da0d0f0f0885f8b14d329231c37aa6779b
2013-09-06 12:52:24 +01:00
Michael Jurka
26acafbe67 Fix crash when setting wallpaper
Also clean up some unused code

Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
2013-09-05 21:52:14 +02:00
Winson Chung
c58497ee61 Initial changes to restore AllApps.
- Removes unused all apps code due to dynamic grid/spacing
- Attempts to use CellLayout instead of PagedViewCellLayout

Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
2013-09-05 12:14:28 -07:00
Winson Chung
761c89d9ac Merge "Fixing issue where shortcuts to standard android intents were getting pruned." into jb-ub-gel-agar 2013-09-04 23:46:14 +00:00
Michael Jurka
eadbfc564d Move wallpapers to external activity
Also renaming Launcher's ApplicationInfo to
AppInfo since ApplicationInfo is already a 
framework class

Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
2013-09-04 16:21:20 +02:00
Winson Chung
68fd3c33da Fixing issue where shortcuts to standard android intents were getting pruned.
Change-Id: Ie5b83f0240a72813e33d528b62f74e69c3807d55
2013-08-30 16:38:40 -07:00
Winson Chung
ba9c37f41c Fixing missing workspace screens. (Bug 10512285)
- Also skipping apps that are disabled (Regression, Bug 10444606)

Change-Id: I175d0188615cbd378166e14ac2f7afb6295fe886
2013-08-30 14:15:17 -07:00
Winson Chung
933bae6958 Additional Logging.
Change-Id: I37bfa8e1812d2f08c62f1181514aece854a22f2b
2013-08-29 14:39:19 -07:00
Adam Cohen
4caf298a2c Logging to disk for more reliable logging
-> Re-adding basic distinction btw apps and shortcuts
-> Adding functionality to e-mail dump file, but not using

Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
2013-08-28 15:00:15 -07:00