1026 Commits

Author SHA1 Message Date
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
Adam Cohen
b5da445839 Merge "Fixing issue where migration all apps folder couldn't be picked up." into jb-ub-gel-agar 2013-07-12 22:16:03 +00: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
accfd5648c Fix weird page jumps after dropping items
Change-Id: I9f5063d2a9db9e2f2a5c2fd183b45884da11dacc
2013-07-12 14:41:21 -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
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
d6e7aa3154 Fix widget resizing (Which stopped working at some point)
-> Also, deferring empty screen removal until after the drop animation
   in order to reduce buggy transitions
-> Also fixing workspace layout on tablet

Change-Id: I1ae9fdaf592262f959424f321efa6df4298f85cc
2013-07-09 15:47:46 -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
Michael Jurka
ee0ce2b29f Fix NPE when drags are cancelled 2013-07-02 17:24:35 -07:00
Daniel Sandler
d34ba129b1 Merge "Lazily instantiate LauncherAppState." into jb-ub-gel-agar 2013-06-28 00:34:51 +00:00
Adam Cohen
41eb470ef9 Fix now showing on screen 1
Change-Id: I83c3aa0b219e62af8c024229fe00933bcedbf9df
2013-06-27 16:43:15 -07: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
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
Winson Chung
f70696d8cc Fixing crash in shrink wrap on tablets.
Change-Id: I061960b2ca7a2cf02729665fb032d23d8f463ada
2013-06-25 18:47:44 -07:00
Adam Cohen
dcd297f05a Initial implementation of Shrink-wrap
Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
2013-06-25 12:29:32 -07: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
Daniel Sandler
e572fe46f7 Make HolographicOutlineHelper a singleton.
It's a pretty heavy object, including three Paints at 74
bytes apiece, and we allocate one for every workspace and
every icon. We really only need one.

Change-Id: Ic9e12d478c3be27b13133718875c91540f7ccf4c
2013-06-12 22:46:02 -04: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
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
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
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
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
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