Commit Graph

44 Commits

Author SHA1 Message Date
Winson Chung 8c87cd83e0 Fixing issue where the page was reset to 0 on rotation.
- We needed to defer setting the restore page until the first onLayout

Change-Id: I6b7b4c0a6401ab6ab2caaea0dac0a7261ff831e8
2013-07-24 10:57:22 -07:00
Adam Cohen bffe745b1e Adding contract for custom content screen
Change-Id: Ia4dae3c641730ab24a0a124fd94b871d248b7dda
2013-07-22 18:22:02 -07:00
Adam Cohen ae6f6c67a3 Merge "Adding switch to toggle Memory Overlay" into jb-ub-gel-agar 2013-07-19 21:42:12 +00:00
Adam Cohen 39a0604255 Adding switch to toggle Memory Overlay
-> The overlay causes performance regressions so it's hard to evaluate
   performance with it on.
-> Also, the WeightWatcher is still running regardless, so you can
   always check it
-> Saved as a shared pref

Change-Id: Iad5ccbeca2c2b4e0ec86294879f3eb09caa594e9
2013-07-19 14:32:09 -07:00
Michael Jurka 1e2f465f46 Implement ability to uninstall shortcuts from workspace
Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
2013-07-19 17:15:39 -04:00
Adam Cohen edb4076e59 More PagedView cleanup
-> Custom content screen is now full screen (with some padding inserted for now)
-> Hiding the hotseat and page indicators when scrolling to the
   custom content screen
-> Adding background scrim fade in to custom content space.

Change-Id: I28921318a38af46f11fa836020a590c70d5d96ed
2013-07-18 16:47:23 -07:00
Adam Cohen 02b3a8ca1f Merge "Adding notion of fullscreen page to PagedView" into jb-ub-gel-agar 2013-07-17 18:24:46 +00:00
Winson Chung d2be381d36 Removing old scroll indicator and adding page indicator dots.
Change-Id: I44c5b4b532e8464010d45dd0a3dfeccb2d475216
2013-07-17 11:15:22 -07:00
Adam Cohen 96d30a1651 Adding notion of fullscreen page to PagedView
-> This will be used for appending custom content to the left of the workspace
-> Stripped out a bunch of dead code related to notion of layout scale in PagedView

Change-Id: If4dbe28431cb5fb60dc170f6ee6e55a649dac45e
2013-07-16 18:14:22 -07:00
Winson Chung 156ab5b22e Fixing issue where migration all apps folder couldn't be picked up.
- Ensuring that we add items to the non-primary home page
- Fixing issue with drop-target touch handling on tablets

Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
2013-07-12 15:12:32 -07:00
Adam Cohen dedbd962dc Enabling reordering
-> Reordering is enabled and persists
-> Fixed persistence issue when adding items to empty screen

Change-Id: I7c797b2c81a2988c95d8d9383be46d6ef0b7532d
2013-07-12 11:56:42 -07:00
Winson Chung ce376639c8 Fixing crash due to checking hotseat items for collisions incorrectly.
Change-Id: I6ad2a3bd46b975959077683331a4ff7b946cc488
2013-07-11 18:19:56 -07:00
Winson Chung 64359a53dc Ensuring that the db reflects all package added/removed/updated broadcasts.
- Also ensuring that newly added pages are added before the empty page

Change-Id: I97a01f791c438aa5c5b1fd770d3536b449a871bc
2013-07-11 14:19:52 -07:00
Adam Cohen 7d30a37007 Porting PagedView from KG to gain simplified scaling model, reordering
-> We are no longer scaling individual Celllayouts, instead we are scaling
   the entire Workspace (and the CellLayouts come along for the ride)
-> Due to the above change, many assumptions were broken. In particular,
   our drag and drop / animation archiecture is fairly fragile due to the
   frequent and complex mapping of points between different bits of the
   hierarchy. This CL contains a number of fixes which address such
   breakages.

Change-Id: I2e630eab17528729b764b61f587858f6499fd318
2013-07-08 18:32:57 -07:00
Daniel Sandler e060b0b3c7 Fix crash when started via Instrumentation.
Change-Id: Iffe2c76e93e67d56a239228fd2d9e6928ab9f65e
2013-06-27 21:47:55 -04:00
Daniel Sandler d34ba129b1 Merge "Lazily instantiate LauncherAppState." into jb-ub-gel-agar 2013-06-28 00:34:51 +00:00
Daniel Sandler e4f9891f01 Lazily instantiate LauncherAppState.
The application context for LauncherAppState is supplied by
the application whenever it starts; don't ask for an
instance before that.

Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
2013-06-27 15:17:11 -04:00
Daniel Sandler 06e6c8c50b Merge "Turn off costly profiling." into jb-ub-gel-agar 2013-06-27 18:07:39 +00:00
Daniel Sandler f061f82461 Turn off costly profiling.
Bug: 9603478
Change-Id: Ie903e8e5272794468ee6cf55ea0bf086d8c2f021
2013-06-27 14:02:17 -04:00
Winson Chung c916834ad0 Using package broadcasts to key adding of shortcuts on the workspace.
Change-Id: Id4f83cb0351d21e3f7c029c7fe39efdacd2d6f17
2013-06-26 18:08:56 -07:00
Daniel Sandler f8577a3905 Start the memory dumper directly.
Launching it as an activity from within Launcher is
problematic, so we'll just treat it as a special shortcut
and run the dump when the user clicks that shortcut icon.

Change-Id: Ibe9f4adcaff674f5bafa9b0fc58b5a86cf5ceb00
2013-06-26 14:30:20 -04:00
Adam Cohen 5ccb418b09 Merge "Initial implementation of Shrink-wrap" into jb-ub-gel-agar 2013-06-25 20:23:57 +00:00
Adam Cohen dcd297f05a Initial implementation of Shrink-wrap
Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
2013-06-25 12:29:32 -07:00
Daniel Sandler b9eb2865af Memory tracking is now handled by a service.
Multiple processes may be tracked and viewed simultaneously.

Also, some changes to the graph:
  * show uss and pss together
  * adjust opacity controls

Change-Id: I20eebaa8cc8faf78b46af2a35d71ee538207f02b
2013-06-21 01:16:27 -04:00
Daniel Sandler a127b7ad15 New icon to dump heap information and share it.
Alternatively,
  $ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
2013-06-17 15:29:22 -04:00
Adam Cohen 7c4c510829 HACK: Fixing major persistence regression associated with extra screen to the left
-> Also adding ability to delete shortcuts.

Change-Id: I263baf813eae9089f11288494d575a99f0e859c3
2013-06-14 17:43:44 -07:00
Adam Cohen a0b5749433 Easier way to handle shortcuts
Change-Id: I91c4a25e961774de0bed51ba986802a1834173f9
2013-06-14 15:33:47 -07:00
Adam Cohen 99894d9bb7 Fixing up handling of shortcuts
Change-Id: I70dd044b608f4ef18a9c436964a11122168305d0
2013-06-14 14:19:19 -07:00
Mathew Inwood 876a846edc Add a request code for derived activities to start from.
This allows derived activities to use their own activity request codes
that don't overlap with the ones used in Launcher.

Change-Id: I1337dde550c6bd748dad80e7c62ea6ce15c17374
2013-06-14 15:33:03 +01:00
Bjorn Bringert 1cbd1a0dec Merge changes Id26e9dcf,I4e323bd7 into jb-ub-gel-agar
* changes:
  Memory debugging overlay for L3.
  Move LauncherApplication's state and code to LauncherAppState.
2013-06-12 10:38:39 +00:00
Daniel Sandler 924b993c75 Memory debugging overlay for L3.
Change-Id: Id26e9dcf23017abaffed4015166d57e21e751e6c
2013-06-12 00:44:28 -04:00
Daniel Sandler cc8befac35 Move LauncherApplication's state and code to LauncherAppState.
This removes Launcher's static data and other state out of
the Application object. Now LauncherApplication (extends
Application) exists only to instantiate LauncherAppState.

Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
2013-06-11 22:01:47 -04:00
Adam Cohen e61a9a2cd4 Fix issue with setting the current page immediately after a page is added
Change-Id: Ia9ddc42896b47b10bb98ed6bd6cece1b033207c1
2013-06-11 15:48:38 -07:00
Tom Stamm efe354b877 Merge "Add API to launcher to insert a custom page to the left of workspace" into jb-ub-gel-agar 2013-06-11 22:23:48 +00:00
Adam Cohen 66a01fd24b Add API to launcher to insert a custom page to the left of workspace
Change-Id: I85a4e096aab9bfcb1de74f04075bcabcb7e3262f
2013-06-11 14:57:43 -07:00
Bjorn Bringert 69688aa359 Add 'animated' argument to onWorkspaceShown; only call it on touch down
This lets subclasses decide whether to animate hiding of their own
overlays etc.

Change-Id: I0b34953c53cd0beb0fb33329d919f78f671b660a
2013-06-11 20:40:55 +01:00
Bjorn Bringert ecf33e4819 Move control of voice button proxy visibility to a public method
Change-Id: I9dea07801fa608bebf2026667e71d684fc4b05d3
2013-06-11 15:46:07 +01:00
Bjorn Bringert c459e5241e Allow subclassing Launcher
Changes included:

- Make Launcher not final

- Add some new methods as hooks for subclasses

- Allow Launcher to intercept Workspace touch events

Change-Id: I9a2b628c853394a3b237a384336e1b9e5c2382ec
2013-06-07 19:36:01 +01:00
Adam Cohen 7564d98164 Disable clings (they don't make sense with the current state)
Change-Id: I09c7424a74078738990db65e4a88bcdce93235f7
2013-06-06 23:14:43 -07:00
Adam Cohen e25af79564 HACK: temporary upgrade path from com.android.launcher2
-> load old provider
-> permute pages
-> strip all duplicates from workspace
-> add [allapps minus workspaceapps] to apps folder

Change-Id: Id319d532c6bf1d78370ecc736e95a9475d831de8
2013-06-06 23:09:26 -07:00
Adam Cohen b5fe60c8a5 Add a dummy activity which we can catch on-click in launcher to open allapps/widgets
Change-Id: Idc718a9e03e7358f972c59fcfc3bf2eaf75e56ee
2013-06-06 22:04:27 -07:00
Bjorn Bringert e441bbc7d2 Use standard names for search / voice icon meta-data
These shouldn't be renamed to launcher3.*, since they are used
to get icons from external search / voice apps.

Change-Id: Iae10b9c19771133579a8f6f24ce9c0efbae82688
2013-06-06 21:55:35 +01:00
Bjorn Bringert 32b12d2c79 Get rid of dependency on android-common
It was only used for a single string constant that can be inlined

Change-Id: I19078b6b00adf1b91e329d10181e91809944b606
2013-06-06 13:00:41 +01:00
Daniel Sandler 325dc23624 Launcher2 is now Launcher3.
Changes include
  - moving from com.android.launcher{,2} to
    com.android.launcher3
  - removing wallpapers
  - new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
2013-06-05 23:30:20 -04:00