Commit Graph

657 Commits

Author SHA1 Message Date
Sandeep Siddhartha 2efc7d928a Use transparent system bars on L
Change-Id: I1e8921fa0e8a5bdf34495f9d88ba9f3b1f1e9c89
2014-05-16 17:48:16 -07:00
Kenny Guy b6cc40bc15 Don't clear flags in startActivity
Move setting flags for starting apps back to
AppInfo from Launcher.startActivity.

Bug: 14839470
Change-Id: I1dc928e9ebce9ce4d411678f94b5ca4284c1255f
2014-05-13 15:58:58 +01:00
Adam Cohen e0aaa0d3de Remove antiquated way of determining CellInfo during long press
-> allows us to eliminate cast of getTag() to CellInfo to fix
   issue 13587508

Change-Id: Id2277206765621f664b758cce800bf8423231b1e
2014-05-12 12:45:59 -07:00
Adam Cohen 689ff16ea2 Cleanup pattern for removing the extra empty screen after drag operations
-> Fixes a couple bugs: issue 12179908, issue 12372657, issue 13287732

Change-Id: I24b5abe8e432ea331eeb77407120a8cec28f6376
2014-05-09 15:05:53 -07:00
Kenny Guy 1317e2dd4a Fix bug with user of shortcut not being remembered over restart.
Intent extra was being set as int rather than long so being
missed.
Also use LauncherApps if neccessary in case where launching
without launch animation.
Unregister for package notifications when terminating.

Bug: 14636181
Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
2014-05-08 19:01:16 +01:00
Anjali Koppal 627d9467d3 Merge "Add setters for mWorkspaceLoading and mWaitingForResult." into ub-now-nova 2014-05-05 23:28:33 +00:00
Anjali Koppal ff7ceff73c Add setters for mWorkspaceLoading and mWaitingForResult.
Change-Id: Id542fa6467d13641127cec7150b8f50a9e088657
2014-05-05 14:16:28 -07:00
Amith Yamasani 6cc806d678 Watch for profile events and reload
Reload the workspace and all-apps list when a managed profile
is added or removed.

Bug: 14484845
Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
2014-05-02 13:47:11 -07:00
Kenny Guy ed13187a74 Launcher3 multi-profile support
Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
2014-04-30 23:43:00 +01:00
Winson Chung babb53ef8f Adding external path for drag/drops.
Change-Id: I3b315c4d14cadb9210f15d3c3e0b9545f4591be4
2014-04-14 18:44:21 -07:00
Mathew Inwood b90860a996 Expose workspace.moveToDefaultScreen.
This is to allow derived launcher classes to move the workspace to the
default screen when a drag is started, in case the current screen is not
capable of acting as a drop target.

Bug: 13962574
Change-Id: I8a6e94ce08be825c344beb708d244d2def5f319f
2014-04-11 17:22:56 +01:00
Adam Cohen 646fdf70b4 Upping activity start delay
Change-Id: I4b72ae9d719825e1be8f1feb3643f9311dde2534
2014-04-08 17:02:08 -07:00
Adam Cohen 8f006edba2 Prevent exception in production when icons collide during bind
-> We only need to throw an exception for dogfooders so we can
   track the issue
-> Worst case, an icon is ignored, does not warrant a crash.

issue 12106766

Change-Id: I054a849eb3d65762dc5e1bf699c76655f687c3e8
2014-04-03 18:14:30 -07:00
Adam Cohen 8440e7ce17 Merge "Increase delay before dismissing intro screen (issue 13691305)" into ub-now-mister-ugly 2014-03-31 15:10:34 +00:00
Adam Cohen 2252adea26 Increase delay before dismissing intro screen (issue 13691305)
Change-Id: I0b81d61b922278e0e72c3055086010612687c7d9
2014-03-28 15:29:07 -07:00
Adam Cohen 4a9423d6dd Add method to determine if first run activity has been shown (issue 13680732)
Change-Id: Ia0da4148fd0365c6ae9c3a5a4cff7118959f6382
2014-03-28 14:51:17 -07:00
Adam Cohen 432609a246 Adding in-activity intro screen (issue 12905636)
Change-Id: Ifb016ca6e5052fd91535b98a39f78569200955a8
2014-03-20 11:48:22 -07:00
Mohammadinamul Sheik e769d1681e Merge "Add onClickPagedViewIcon to the Launcher." into ub-now-mister-ugly 2014-03-18 20:30:52 +00:00
Mohammadinamul Sheik 3b1a54a206 Add onClickPagedViewIcon to the Launcher.
Change-Id: I34505ee5c9a6fe6ddd1a9f3134829fe0481e8bc0
2014-03-18 11:28:19 -07:00
Anjali Koppal ef3784cf69 Merge "Add LauncherProviderChangeListener" into ub-now-mister-ugly 2014-03-17 23:47:21 +00:00
Anjali Koppal 67e7cae5ad Add LauncherProviderChangeListener
Change-Id: I2333a157c488cd048a860982cc675ed9cec626ae
2014-03-17 15:13:01 -07:00
Anjali Koppal 62d18edcc7 Add Launcher.onDragStarted
Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
2014-03-17 15:06:41 -07:00
Anjali Koppal 5ad4484df3 Add a setter/getter for Launcher.mAllAppsButton.
Also, handle clicks on the all apps button by using onClick() method in
Launcher instead of directly calling onClickAllAppsButton in Hotseat.java

Bug 12553852
Change-Id: I261c27d3e964bbb1f52c2ab610997defd99a59bd
2014-03-12 18:22:55 -07:00
Chris Wren aeff7ea434 update promise icon status
also fix a crash in LauncherModel.DEBUG_LOADERS

Bug: 10778992
Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
2014-03-11 13:41:05 -04:00
Selim Cinek 3a8a8f7c23 Disable wallpaper in -1 space in GEL and hack around window animations
Bug: 12978354

Change-Id: I8b5602ae434a9151b40d41defb891db1ad78ce81
2014-03-07 14:30:36 +01:00
Anjali Koppal 7b168a1bb9 Make classes that extend ItemInfo public.
Also follow up on changes in ag/418520, adding Views to those method
params.

Change-Id: I93e0a3b30d10b969d1903a2f227f6744d709e89a
2014-03-04 17:16:11 -08:00
Adam Cohen 6902916b07 am 474a3573: Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox
* commit '474a35735ae758757dfd161a5c045d027bb9e033':
  Avoid stripping empty screens if the workspace is still loading (issue 12523285)
2014-03-03 11:19:36 -08:00
Adam Cohen 474a35735a Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox 2014-03-03 19:07:23 +00:00
Adam Cohen 517a7f5fd0 Avoid stripping empty screens if the workspace is still loading (issue 12523285)
-> This appears to be what may be causing data loss in some users during update.
   A certain (seemingly) rare combination of life-cycle events and package events
   seems to be the culprit (potentially why it's seen at update time).

Change-Id: Iea4f8aef012ba80b7ba568e0df264edb9284efbe
2014-03-01 12:17:44 -08:00
Anjali Koppal feec09d731 Merge "Make launcher implement PageSwitchListener." into ub-now-mister-ugly 2014-02-28 22:32:06 +00:00
Anjali Koppal f5d29130b9 Make launcher implement PageSwitchListener.
Change-Id: Ief4b0cb4700aeace56a3c923a0a669a626c6506b
2014-02-28 13:33:27 -08:00
Jorim Jaggi e69746dc88 am 4f462f4a: Merge "Revert "Disabled the wallpaper when completely in -1 Now space."" into ub-now-lunchbox
* commit '4f462f4a8b9fc6897d9fab9ad31c06e0b8f79373':
  Revert "Disabled the wallpaper when completely in -1 Now space."
2014-02-28 06:55:56 -08:00
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
Sandeep Siddhartha 92ecd2346b Merge "Refactor clicks and remove dead code" into ub-now-mister-ugly 2014-02-14 03:34:49 +00:00
Sandeep Siddhartha a942030eb6 Refactor clicks and remove dead code
Change-Id: Id92f43b4f6b31707a18035dace6ad14ab728d0bb
2014-02-13 17:37:15 -08: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