Commit Graph

3247 Commits

Author SHA1 Message Date
Adam Cohen 72960975d8 Migration update: ensuring all folders go first
-> Also, leave the last row empty on every screen
-> Fix bug where shortcuts weren't getting moved (introduced in
   previous CL)
-> Only dedupe items directly on the workspace

Bug 12416411
Bug 12572727

Change-Id: Id95cc6081c57cc289c2a85b2a6872ee0bf3eb98a
2014-01-16 11:56:41 -08: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
Chris Wren 230cbf831c Merge "rationalize launcher backup logging" into jb-ub-now-kermit 2014-01-15 22:09:20 +00:00
Chris Wren 50c8f42568 rationalize launcher backup logging
enough data to debug dogfood issues
easy switch to move to quieter production mode
common switch across all three classes

Bug: 12545310
Change-Id: Icb4ad7174f20884c6993140149db590d66f6e006
2014-01-15 16:35:33 -05:00
Winson Chung e43a1e7882 Tightening migration conditions. (Bug 11973614)
Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
2014-01-15 11:34:54 -08:00
Dan Sandler 44f834133e Merge "restore app favorites and screens" into jb-ub-now-kermit 2014-01-15 14:46:34 +00:00
Jorim Jaggi c27a051320 Merge "Remove settings in overview mode for Launcher3." into jb-ub-now-kermit 2014-01-15 01:31:13 +00:00
Jorim Jaggi d017f882eb Remove settings in overview mode for Launcher3.
The appereance of the settings button in overview mode is now dependent on
a overridable method, such that we can have it in GEL, but not in Launcher3.
This change also adjusts the logic of how wide the overview panel is, depending
on how many items we have.

Bug: 12441429
Change-Id: Ibf537c26602785f565292cbfa213eb123469ebcd
2014-01-14 17:08:48 -08:00
Adam Cohen 24ce0b3708 Fixing drop targets in phone / small tablet landscape (issue 12192781)
Change-Id: I4dc8a82c8cd5ef279506e7868e33a455fba5a3be
2014-01-14 16:33:50 -08:00
Adam Cohen 13b563bcae Merge "Ensure that hasFirstRunActivity is only called when necessary" into jb-ub-now-kermit 2014-01-15 00:26:07 +00:00
Adam Cohen bc4539df6f Ensure that hasFirstRunActivity is only called when necessary
Change-Id: I834abcd82f46c6f096f5c92452b34c668a4a3d86
2014-01-14 16:24:16 -08:00
Jorim Jaggi 00c3184fa6 Merge "Fix NPE in Workspace.onDropCompleted" into jb-ub-now-kermit 2014-01-14 23:01:48 +00:00
Chris Wren 65b6a603fa search for a valid journal
there are too many bytes, so we need to find the valid subset,
without stepping past the end!

Bug: 12489602
Change-Id: Ic9d7c804c199740ff50d0864f99632ae68619369
2014-01-14 17:46:27 -05:00
Jorim Jaggi eedb00a674 Fix NPE in Workspace.onDropCompleted
Bug: 11627757
Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
2014-01-14 13:02:43 -08:00
Dan Sandler c4fa7a9c4a Merge "Fix longpress crash." into jb-ub-now-kermit 2014-01-14 18:51:36 +00:00
Winson Chung d731594863 Merge "Properly saving migration cling keys." into jb-ub-now-kermit 2014-01-14 18:31:32 +00:00
Winson Chung 285b6e1483 Properly saving migration cling keys.
Change-Id: Id52a12da6af0fc91463dae07bbeb355ee04873d0
2014-01-14 10:30:27 -08:00
Chris Wren 5dee7aff5f restore app favorites and screens
version 0: restore assuming apps are already installed.

Bug: 10779035
Change-Id: I7f9aa418a7d3d5460a79a229c0fbc80305b5eb5c
2014-01-14 11:23:07 -05:00
Dan Sandler e26d094845 Fix longpress crash.
The AllApps button doesn't usually accept longpresses, but
you can trick it into trying by holding one finger on it and
another on another icon in the hotseat. This patch defends
against that and bails out if the longpressed item has the
all apps rank (position in hotseat).

Bug: 11740833
Change-Id: I99785ccbc9e6dc6be2a9e56289b3cc0275fbb65c
2014-01-14 11:12:38 -05:00
Chris Wren 1ae293c647 Merge "backup keys that might have slipped past" into jb-ub-now-kermit 2014-01-14 15:15:04 +00:00
Chris Wren dc9c125236 Merge "hide launcher restore behind a flag." into jb-ub-now-kermit 2014-01-14 14:58:43 +00:00
Michael Jurka 574120cdca Merge "Recover when widget preview database is deleted" into jb-ub-now-kermit 2014-01-14 11:10:36 +00:00
Chris Wren 4b171361ca hide launcher restore behind a flag.
enable with 'adb shell settings put secure launcher_restore_enabled 1'
before signing into wiped device

Bug: 12532845
Change-Id: I1471c39dac2e6e1412f7720b1ba8edf46273c593
2014-01-13 17:52:40 -05:00
Winson Chung 6279e2cd31 Merge "Set App context from WallpaperChanged receiver. (Bug 12525684)" into jb-ub-now-kermit 2014-01-13 18:32:22 +00:00
Winson Chung 13571ae0de Set App context from WallpaperChanged receiver. (Bug 12525684)
Change-Id: Ie037d74d31e6b05b0ae5bb25ed1bf1c639a28a5f
2014-01-13 10:05:37 -08:00
Dan Sandler 0b95b14ffe Merge "Quick patch for b/12446428." into jb-ub-now-kermit 2014-01-13 15:35:40 +00:00
Chris Wren 5743aa9a86 backup keys that might have slipped past
seems a little paranoid, but can't hurt.

Bug: 12455866
Change-Id: If9da4cc021ee4fac32c822a91fabda69bf3ff8aa
2014-01-13 08:43:14 -05:00
Winson Chung 5317c2b7ad Updating assets and text for migration cling. (Bug 11973614)
Change-Id: I69ffc1581cc43511b4f42ebb2735afe4c0b44131
2014-01-10 16:59:09 -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 24fa33f8c7 Merge "Allow DISABLE_ALL_APPS to be set using a system property." into jb-ub-now-kermit 2014-01-10 19:49:21 +00:00
Dan Sandler 0eb687fdc4 Quick patch for b/12446428.
Bug: 12446428
Change-Id: I5b9472e55a8919f5640c6e97fede9b5637819be0
2014-01-10 13:24:55 -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
Adam Cohen b54a5989a2 Adding optional first run activity to Launcher
Change-Id: I146927d8a065f1cf5ef5cec41c8fb4f9ad09d25c
2014-01-09 14:08:49 -08:00
Adam Cohen 0259c629cb Merge "Fix issue where deleting item from folder leaves extra page" into jb-ub-now-kermit 2014-01-09 19:14:52 +00:00
Chris Wren 33f4c2df28 first backup should save things from the beginning of time
Bug: 12455866
Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5
2014-01-09 13:02:20 -05:00
Michael Jurka 6e27f642ae Recover when widget preview database is deleted
Bug: 12109621

Change-Id: I8d59700d31d6856d6151b965786c87585801317b
2014-01-09 14:41:32 +01:00
Winson Chung 872e70e0b6 Merge "Accounting for new Package event extras when updating forward-locked apps. (Bug 11855584)" into jb-ub-now-kermit 2014-01-08 22:05:47 +00: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
Dan Sandler 155f3bc69b Merge "KEYCODE_MENU: hide all apps when entering overview mode" into jb-ub-now-kermit 2014-01-08 21:02:51 +00:00
Dan Sandler 14c6a3f510 KEYCODE_MENU: hide all apps when entering overview mode
Bug: 12165618
Change-Id: I7ee652012c7f7b8e6fab3d9d1f99cf22484f3182
2014-01-07 14:13:08 -05:00
Mihail Dumitrescu 693fbc7f17 Remove a non-obvious fall through in a switch statement.
This CL does not modify the result of calling onInterceptHoverEvent()
assuming isEventOverFolder() has no side effects. The only change is
that isEventOverFolder will now be called once rather than twice when
action == MotionEvent.ACTION_HOVER_ENTER and isOverFolder == true.

Change-Id: Icc28ab880cf5094e49f51d72035891e924cb2031
2014-01-07 18:49:46 +00:00
Nilesh Agrawal 579c8433f9 Merge "Allow scrolling folders in when all apps is disabled." into jb-ub-now-kermit 2014-01-03 22:28:44 +00:00
Nilesh Agrawal 5f7099af85 Allow scrolling folders in when all apps is disabled.
Allows for more items to be added into a folder.
Allows for scrolling by letting the content area inside the scroll view to be taller.
The height of content area was capped in https://googleplex-android-review.git.corp.google.com/#/c/387583/

Change-Id: I8d7950ac9c155e26c5a299c17ae6a2bbf829dce6
2014-01-02 15:55:53 -08:00
Sandeep Siddhartha d4d3d08741 Allow changing search bar hint in the cling on-the-fly
- This allows GEL to initially supply an empty string if hotword isn't
  active, and later on update the cling if and when the hotword becomes
  active.
- This isn't expensive as it'll only be called if Launcher first calls
  getFirstRunClingSearchBarHint, i.e. once every fresh install/clear
  data

Bug: 11116105
Change-Id: Ia963bb62d7b331afd0c34adfa6c4b6bdbac48349
2013-12-26 15:42:52 -08:00
Nilesh Agrawal dff0bfeb90 Do not allow duplicate shortcuts when ALL_APPS is disabled.
When DISABLE_ALL_APPS is true, we want to have only one shortcut for each activityexposed via the Application's manifest.
We ignore INSTALL_SHORTCUT broadcasts which have launch intents with ACTION_MAIN and CATEGORY_LAUNCHER.
Applications can still create shortcuts pointing to an already exposed component if they provide data or extras in the intent.

Change-Id: I0b05283ea6c522d197e0262c2997f7298e08740b
2013-12-17 15:26:00 -08:00
Adam Cohen 9c58d8269b Fix issue where deleting item from folder leaves extra page
Change-Id: Ie741dbe5341d8237c85f732b26661d084b99f6e2
2013-12-13 17:18:25 -08:00
Adam Cohen 309260ee59 Merge "Don't notifyPageSwitchListener until page settles (issue 12069757)" into jb-ub-now-kermit 2013-12-13 23:59:53 +00:00