Commit Graph

1514 Commits

Author SHA1 Message Date
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
Winson Chung a90303bb6f Adding logs to track down missing workspace screen. (Bug 11683562)
Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
2013-11-15 13:10:03 -08:00
Adam Cohen e9b198fd74 Merge "Change the way view ids are assigned (issue 11627801)" into jb-ub-now-jolly-elf 2013-11-14 16:22:36 +00:00
Adam Cohen c76e1dda08 Change the way view ids are assigned (issue 11627801)
Change-Id: I4d9c0542ea3ac581c4a9f4da68824f0b498ea337
2013-11-14 15:16:14 +00:00
Adam Copp 3dc3ecda28 Merge "Hooks for subclasses to react to home presses." into jb-ub-now-jolly-elf 2013-11-14 14:04:45 +00:00
Michael Jurka 4346746ef3 Use AsyncTasks instead of creating new threads
Change-Id: If166869dfbeb84d4dee2203f5b98a22b9d20719d
2013-11-14 12:38:45 +01:00
Adam Copp a120b8e304 Hooks for subclasses to react to home presses.
This provides the nessecary hooks for GEL so that it can prevent
scrolling to the home screen when a search is open, instead choosing to
dismiss the search.

Bug: 11128544
Change-Id: I3c1b67bc271c1342db4a0abac364f2923bdeba3a
2013-11-13 11:37:59 +00:00
Winson Chung 8e15fdf60a Prevent launching Widgets when cycling between Overview/Shrink state and Home. (Bug 11439120)
Change-Id: I21173f114228ba43172af9074d2ac1fadeee9886
2013-11-11 15:47:45 -08:00
Adam Cohen 2777273a2a Add method to determine if Launcher is using vertical bars
Change-Id: I7e9096cf81b49d213025c6f98708186330448fc0
2013-11-11 14:01:35 +00:00
Winson Chung 07e045c637 Save and restore the correct content type when rotating while in AllApps.
Change-Id: I508832e46c8a2ab3bb53baf8f44b543c4c24aed2
2013-11-07 18:50:09 +00:00