Commit Graph

712 Commits

Author SHA1 Message Date
Adam Cohen 89bddfaa6d Stripping unused method param
Change-Id: Id71664a88908773c5e64c9394070ad231d2148a1
2013-08-20 15:01:56 -07:00
Winson Chung 5f8afe6280 Initial Changes for Dynamic Grid
Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
2013-08-20 10:56:05 -07:00
Winson Chung 76828c87dd Ensuring that we don't clobber workspace screens map when new apps are added.
- Using Log warnings instead of debugs
- Ensuring we don't save negative screen id's

Change-Id: I13276d007193c120ee0830abcdc6eb203f22a9da
2013-08-19 16:44:58 -07:00
Adam Cohen 2702ea0060 Removing custom content padding
-> Cleaned up extraneous imports

Change-Id: I3f9258a893e85f9f6a7cc1eab03d4c5a3dfba786
2013-08-15 16:18:09 -07:00
Adam Cohen 3d1b2b4206 Passing right swipes through to custom content
-> Right swipes must follow page settle by >= 200 ms.

Change-Id: Ie5a5ae36e63f28736599a8a846570949447f7a03
2013-08-14 15:57:58 -07:00
Adam Cohen 61a9a5c359 Don't switch pages when dragging out of folder
-> Fix bug where page switch indicator wouldn't draw on right
-> Fixed some code related to folder reordering -- no behaviour change
   yet, but once the new AutoScroll is in, this should behave correctly
   (ie. shouldn't reorder while in scroll zone)

Change-Id: Ic14a8d70858777164f094204472dc6a726dd461a
2013-08-14 13:36:51 -07:00
Adam Cohen 1b7d423c65 Merge "Adding overview mode for reordering, widget adding and wallpaper switching" into jb-ub-gel-agar 2013-08-14 01:54:06 +00:00
Adam Cohen f358a4bbd6 Adding overview mode for reordering, widget adding and wallpaper switching
Change-Id: I082ba0b90ca4b3fbba32e8dfdec8ba79486d841c
2013-08-13 18:53:36 -07:00
Winson Chung cda0921782 Merge changes I559fae32,Ic4db1a3a into jb-ub-gel-agar
* changes:
  More logging.
  Adding additional logging.
2013-08-13 17:57:15 +00:00
Romain Guy e6661950f5 It is *very important* to call super.onDetachedFromWindow()
Bug #10075732

Change-Id: I515005e35398317d98124964b6bb74f488a213f4
(cherry picked from commit 2361a4daf77ac1f076273d19bc6e171b3b74b22e)
2013-08-13 18:49:01 +02:00
Winson Chung 45fa06ed1e Adding additional logging.
Change-Id: Ic4db1a3abe8b735f07e51a2d35ca92273b5f76c8
2013-08-12 18:37:42 -07:00
Winson Chung 8481e32e5b Adding additional debugging code to track screen id updates.
Change-Id: I1749ab998a4c213b32f1160d5d21f21b2f30e389
2013-08-09 16:06:38 -07:00
Winson Chung 3dba179949 Merge "Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic." into jb-ub-gel-agar 2013-08-02 21:54:25 +00:00
Winson Chung 482a5b6ed3 Fixing crash due to grabbing oob screen index. (Bug 10114488)
Change-Id: I9e0c3d9bfcf96f092260a82b930b7ea728b6e98d
2013-07-31 17:19:51 -07:00
Winson Chung 707f650c5c Merge "Adding hint for launcher to pre-create custom workspace screen." into jb-ub-gel-agar 2013-07-31 17:44:44 +00:00
Winson Chung 98ca0f7203 Adding hint for launcher to pre-create custom workspace screen.
Change-Id: I150fb8b6ff13053bf4b0b49f2b510630ed50714a
2013-07-31 10:43:50 -07:00
Winson Chung 63d7870ea2 Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar 2013-07-31 17:34:54 +00:00
Winson Chung 08ab8d28c6 Merge "Prevent dragging workspace items to custom content page." into jb-ub-gel-agar 2013-07-31 17:31:17 +00:00
Winson Chung df11a77f29 Merge "Adding support for custom page indicator markers." into jb-ub-gel-agar 2013-07-31 17:30:55 +00:00
Derek Prothro ce9249e4d3 Call onShow/onHide when visibility changes on -1 screen.
Bug: 10089616
Change-Id: I4365432d5ff699b3722ca3f30713e0c490d0e4ed
2013-07-30 15:40:07 -04:00
Winson Chung 82dfe58514 Adding support for custom page indicator markers.
Change-Id: I057b0cccc4194157d92ebb123af2afaf94fb5415
2013-07-26 15:07:49 -07:00
Winson Chung 9883c9ae25 Prevent dragging workspace items to custom content page.
Change-Id: I4279f5feffb9512af66243969efaaadfb9011962
2013-07-26 13:50:47 -07:00
Winson Chung 997a92348a Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.
Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
2013-07-26 12:58:45 -07:00
Winson Chung c763c4e4d2 Verifying that new applications are added and fixing issue with new items getting wrong ids.
- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
2013-07-25 14:50:49 -07:00
Adam Cohen 6ad0e7dcae Fix overhang of custom content area into first screen of launcher
Change-Id: I2e8cbedb644c8399be269616e617851136489da5
2013-07-24 14:25:58 -07:00
Adam Cohen ec40b2b90c Giving custom content full screen
Change-Id: Icd104fff8a1a315b795a60b812048a6218bf0e5a
2013-07-23 17:47:54 -07:00
Adam Cohen bffe745b1e Adding contract for custom content screen
Change-Id: Ia4dae3c641730ab24a0a124fd94b871d248b7dda
2013-07-22 18:22:02 -07:00
Winson Chung bc902ad603 Merge "Fixing performance issues with drawing all visible pages." into jb-ub-gel-agar 2013-07-22 19:20:54 +00:00
Adam Cohen d637124462 Merge "Just for now, for fun" into jb-ub-gel-agar 2013-07-19 23:38:50 +00:00
Adam Cohen 3e056d13d2 Merge "Adding layout transition for when pages get deleted" into jb-ub-gel-agar 2013-07-19 23:38:39 +00:00
Adam Cohen 955806dfc4 Just for now, for fun
Change-Id: I4105b4299da59f5f34e280f7e7386f6e0e9c1b1a
2013-07-19 16:36:50 -07:00
Adam Cohen 22cba7f995 Adding layout transition for when pages get deleted
-> Fixing NPE

Change-Id: I1e0cb057ff65c2b8831a2e10652acb6db10e50e3
2013-07-19 16:14:47 -07:00
Michael Jurka 1e2f465f46 Implement ability to uninstall shortcuts from workspace
Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
2013-07-19 17:15:39 -04:00
Winson Chung c9ca298098 Fixing performance issues with drawing all visible pages.
Change-Id: I17736c1e6afa1f4a961c136fe82bf1d632cbe6cc
2013-07-19 14:01:19 -07: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
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