Commit Graph

223 Commits

Author SHA1 Message Date
Jorim Jaggi b45b65e1e5 Revert "Disabled the wallpaper when completely in -1 Now space."
This reverts commit f3a8e8c0bd.

Bug: 12978354
Change-Id: I11f1eeaab4fad9a2e4acf835144f0b0dc6fac54b
2014-02-27 20:33:46 +01:00
Jorim Jaggi 55bd9725d5 Implement spring-loading of folders when dragging over.
Bug: 8912132
Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
2014-02-12 22:16:51 +01:00
Adam Cohen c87c21a0cd Merge "Small refactor to separate adding workspace / all apps items" into ub-now-lunchbox 2014-02-05 22:25:41 +00:00
Adam Cohen 76a47a1b22 Small refactor to separate adding workspace / all apps items
Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
2014-02-05 13:05:02 -08:00
Yura 4f93ec63b1 Do not show overview when menu pressed on CustomContent screen.
Bug: 12524591
Change-Id: I2bc0c4d206214d994c9a9e1bd13b42f2e53dba9f
2014-02-04 16:30:23 +00:00
Derek Prothro 93b92d0895 Merge "Fix black flash during rotation of -1 screen with GEL." into ub-now-lunchbox 2014-01-30 22:03:55 +00:00
Derek Prothro dadd984a89 Fix black flash during rotation of -1 screen with GEL.
We need to make sure the custom content is adding synchronously
while the rest of the workspace is being created. If we wait
for it to be added in a separate run task, we see a black
flash during rotation.
Also rename a few methods and remove obsolete methods.

Bug: 11802691
Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
2014-01-30 15:55:48 -05:00
Sandeep Siddhartha d805837a87 Add callback for "Widgets" button click in launcher
Bug: 12553852
Change-Id: I8befd046242b32e86dbc6c98e6d97f0307380dd0
2014-01-28 10:41:15 -08:00
Ian Parkinson 4195da42b7 am 94449158: Avoid NPE from delayed Runnable
* commit '944491587e8a8f77233a1916cc16cd07edd97f2e':
  Avoid NPE from delayed Runnable
2014-01-22 11:32:47 -08:00
Ian Parkinson 944491587e Avoid NPE from delayed Runnable
Naive fix to b/12656485. Other Runnables in Launcher similarly check
that mWorkspace hasn't become null between being posted and being
executed, so I think this is probably appropriate.

Bug: 12656485
Change-Id: Ib4f3d0e8686c6249fe838144b1e8120c85f66f01
2014-01-21 13:09:59 +00:00
Adam Cohen c07347961e am e6e0af03: Merge "Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)" into jb-ub-now-kermit
* commit 'e6e0af03ee39b3e800c8f7e86eefffae432ee7c8':
  Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)
2014-01-17 13:28:54 -08:00
Adam Cohen e6e0af03ee Merge "Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)" into jb-ub-now-kermit 2014-01-17 20:25:14 +00:00
Winson Chung e029874bcf Dismissing search and other overlays when the menu button is pressed. (Bug 12524591) 2014-01-17 12:03:00 -08:00
Selim Cinek f3a8e8c0bd Disabled the wallpaper when completely in -1 Now space.
Bug: 11186234
Change-Id: I6ffb66f12298bd9df7e228a8589d63780b70a396
2014-01-16 23:57:27 +00:00
Winson Chung cdd82ef1bb am f8584042: Merge "Updating Tablet clings. (Bug 11973614)" into jb-ub-now-kermit
* commit 'f8584042713aad82f9d057ecaace8a9ad1aad0bc':
  Updating Tablet clings. (Bug 11973614)
2014-01-16 15:10:51 -08:00
Winson Chung 205cd7727f Updating Tablet clings. (Bug 11973614)
Change-Id: I6cb10424a345691d50c4fac7969e0b97bbee4b3c
2014-01-16 14:26:07 -08:00
Adrian Roos 850f91320c Fix back button behavior for "App info" when launched by Launcher3.
Ensures the back stack is clean when opening the "App info" app from the launcher.

Bug: 10393223
Change-Id: Iad078ca37c4794a580f1b996f8324fef404e7462
2014-01-15 21:18:20 +00:00
Winson Chung e43a1e7882 Tightening migration conditions. (Bug 11973614)
Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
2014-01-15 11:34:54 -08: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
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
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
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
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
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
Michael Jurka 7ad868b86e Create separate project for Wallpaper Picker
Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
2013-12-13 12:50:32 +01:00
Nilesh Agrawal 306c1cf200 Show widgets when ALL_APPS is disabled.
Change-Id: I367448df69a63ffd3412fe4c99137a21426d285c
2013-12-12 15:00:59 -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 e7e97e6552 Retain current AllApps page if we never leave Launcher. (Bug 11468582)
Change-Id: Id18b14f6fbb2598a8c1f4c714f79d1a4332a7868
2013-12-04 20:11:09 +00:00
Michael Jurka 3ed4a4dd3d am 10a8935e: Merge "Use AsyncTasks instead of creating new threads" into jb-ub-now-jolly-elf
* commit '10a8935ef1fc8f073e276fddc85bf66513050c81':
  Use AsyncTasks instead of creating new threads
2013-12-03 07:07:19 -08:00
Michael Jurka 10a8935ef1 Merge "Use AsyncTasks instead of creating new threads" into jb-ub-now-jolly-elf 2013-12-02 22:17:49 +00:00
Mac Duy Hai 6077945816 am a50d3430: Merge "Add method to retrieve search box bounds." into jb-ub-now-jolly-elf
* commit 'a50d34306c5fe6748392b493b5fbd4c54bf5f39f':
  Add method to retrieve search box bounds.
2013-12-02 03:43:36 -08:00
Mac Duy Hai 6def4f900c Add method to retrieve search box bounds.
Change-Id: I67893f00990053415453490034ea7066d9f0f3b6
2013-11-28 16:17:33 +00:00
Adam Cohen 52aa0636c6 am d552dd90: Fix NPE in Launcher onDestroy
* commit 'd552dd90f1da32e1be2dd95ffed57c65d40cb651':
  Fix NPE in Launcher onDestroy
2013-11-26 12:23:01 -08:00
Adam Cohen d552dd90f1 Fix NPE in Launcher onDestroy
Bug: 11765296
Change-Id: I83299656cc90b8a744afb0db4b5ea08675c8db82
2013-11-26 12:17:39 -08:00
Adam Cohen 9710ec9d85 am 060a4837: Merge "Fix NPE in case where workspace is null because Launcher has been destroyed " into jb-ub-now-jolly-elf
* commit '060a48378f21a6b5836990a23178d02c94fccc60':
  Fix NPE in case where workspace is null because Launcher has been destroyed
2013-11-26 12:00:48 -08:00
Adam Cohen 37c717ffa6 Fix NPE in case where workspace is null because Launcher has been destroyed
Bug: 11765964
Change-Id: Iacd4db712c09940c05ccd2a64b25e376b63c6aee
2013-11-26 19:52:58 +00:00
Mathew Inwood 72fbec17e0 Add support for initiating a drag from an overlay.
This allows an overlay to create apps and shortcuts on the home screen.

Change-Id: I63ee4ef02db3f4bc89726c394fd55ad26f50452c
2013-11-20 11:45:53 +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 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