Commit Graph

84 Commits

Author SHA1 Message Date
Winson Chung c9d55c0dd0 Merge "Fixing issue where drag view is jumping when you scroll from hovering over an edge. (Bug 8522679)" into jb-mr2-dev 2013-04-04 18:10:02 +00:00
Winson Chung 25460a1d5c Fixing issue where drag view is jumping when you scroll from hovering over an edge. (Bug 8522679)
Change-Id: Ie523e718bd1b558db9608aa66f6c353e4b8e1a14
2013-04-01 18:21:28 -07:00
Winson Chung fe1fe268b6 Fixing RTL issues with apps ordering and snapping to page. (Bug 8238938, Bug 8374016, Bug 8373578)
Change-Id: I57ff58a6202a2794f02cfc13ed6124b10256dbbf
2013-04-01 17:07:39 -07:00
Michael Jurka 05713af127 Cache widget previews in a DB
- Smoother All Apps scroll performance

Change-Id: Id2d31a45e71c63d05a46f580667ad94403730616
2013-02-04 20:32:49 +01:00
Winson Chung cd81073eac Decoupling launcher/workspace package cleanup from the application list (Bug 6602756)
- Fixes issues where shortcuts created by wallpaper/widget-only apps are uninstalled.

Change-Id: I94c9d1d71fc34aa2fb7f0660534e616a82ac6f36
2012-06-21 10:50:51 -07:00
Winson Chung 6e1bdaf419 Lowering the threshold for flinging on larger devices. (Bug 6575670)
Change-Id: I969057d6135babef430c60f5b2705179210719bb
2012-05-29 17:04:43 -07:00
Adam Cohen c843ca452a Remove some dead code
Change-Id: Id29de1acbdb19dce3a0fae503d81682bd5715ffd
2012-05-08 13:27:37 -07:00
Winson Chung be365165ed Try and resolve the package name from the intent directly falling back to the resolved component name if it fails. (Bug 6452306)
Change-Id: Ifb2187fb845f807f30df966bf298ffde1b779b46
2012-05-07 11:11:52 -07:00
Winson Chung 579225f894 Fixing NPE in DragController. (Bug 6449615)
Change-Id: I84982043f4a39b0676c3d620fcd6e3c642cc5897
2012-05-06 19:20:59 -07:00
Winson Chung da954bb599 Merge "Fixing issue where shortcuts and widgets were not being removed when the package was uninstalled (Bug 2657997, Bug 6335843)" into jb-dev 2012-04-30 10:22:37 -07:00
Winson Chung 11a4937fbf Fixing issue where shortcuts and widgets were not being removed when the package was uninstalled (Bug 2657997, Bug 6335843)
- Also fixes issue if we are dragging a shortcut/widget and it is removed.
- Also exposes App Info for shortcuts and widgets

Change-Id: I3bd5056f50f20e8b277dde6456df26eac815bcde
2012-04-27 15:15:11 -07:00
Winson Chung 360e63fd3e Moving side-page indicators to DragLayer to ensure it draws above hotseat gradient. (Bug 5117499)
Change-Id: Id0ab644f6631f4fd6be042b6be36ba8fe58eaae4
2012-04-27 13:48:51 -07:00
Winson Chung e46772df79 Merge "Get Vibrator from Context instead of using private API." 2012-04-13 15:55:03 -07:00
Michael Jurka 3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Jeff Brown 8ef85c7a01 Get Vibrator from Context instead of using private API.
Bug: 6334179
Change-Id: I5b16e0706489edc6c93ad9b5e480157aea1ecad0
2012-04-13 02:58:38 -07:00
Winson Chung 318eee06ae Addressing issues with comments in previous new-app animation delay change.
Change-Id: I1185ae890c5374f9b736c567622372b54fbde0ed
2012-04-12 10:59:49 -07:00
Winson Chung 2c2b28ae55 Merge "Adding delay upon user interaction to prevent the new-app animation from taking over your phone. (Bug 6248609)" 2012-04-12 10:55:11 -07:00
Winson Chung 9658b1e659 Tweaking fling-to-delete to make the fade out animation longer and harder to trigger.
Change-Id: Ie444420d2cf81e209d4bbca9c77edaad39bda000
2012-04-09 18:30:31 -07:00
Winson Chung a2413751e3 Adding delay upon user interaction to prevent the new-app animation from taking over your phone. (Bug 6248609)
- Fixing issue where we might have been reading the db items while handling previous broadcast and adding db items to invalid positions
- Making items add alternating from the center page (as opposed to the current page)
- Re-adding the strict-mode fix (really requires 1. to be true)
- Adding flag for enabling strict mode exceptions
- Removing items from the new apps add list on uninstall-shortcut broadcast

Change-Id: I495e80bf5f8dbb4b87dd709460937d6f2a1e05e7
2012-04-09 17:04:00 -07:00
Michael Jurka 7bcadad93f Fix NPE
Bug: 6259450
Change-Id: Iea92f3832fcd3a88e7d13b2e55ba4faf83be93dd
2012-04-02 07:23:44 -07:00
Winson Chung 232decb008 Fixing issue where flinging-to-delete from a folder does not reflow/close the folder. (Bug 6240540)
Change-Id: I0d442761048c05110b079916eea7c0dcfbaf9759
2012-03-28 15:09:58 -07:00
Winson Chung a48487a814 Allow fling gesture while dragging from AllApps to dismiss drag.
Change-Id: I5eea14336579a1374aded63dda9ad1a33e8b8d4a
2012-03-22 13:00:16 -07:00
Winson Chung 043f2af567 Adding fling-to-delete.
- Also fixing issue where the drop target icon changes color slower than the text.

Change-Id: I0bfa59da5d202016342f1c3de419ebcafd81ff6f
2012-03-20 15:18:05 -07:00
Winson Chung 41bb19d277 Always remove drag view immediately when cancelling drag. (Bug: 6119112)
Change-Id: Ib0a829c5bee834700e29dba8538c83b773d017b2
2012-03-05 18:37:21 -08:00
Winson Chung 61b0c69d3f Tweaking pickup animation, vibration and removing glow from drag view.
Change-Id: I8c9741e8b63ca9a0fc4af90e178dbb02fa912d83
2012-02-23 16:33:08 -08:00
Winson Chung 72d598400d Animating the widget previews on drag from AppsCustomize.
Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
2012-02-23 12:21:12 -08:00
Winson Chung 7bd1bbb509 Animating the drag view scale up and down when dragging items.
Change-Id: Ic97d74a14964c6bdc23305b2d378b13a1f2e3664
2012-02-13 19:05:25 -08:00
Winson Chung a1cdab0392 Reverting: "Animating the drag view scale up and down when dragging items."
Change-Id: I133ff2631834a4b97e1e4750fb7c07793ddeba69
2012-02-13 13:03:52 -08:00
Winson Chung 42c29aedf2 Animating the drag view scale up and down when dragging items.
- Also fixing up how we draw the drag view alpha

Change-Id: Ied82aec9d52274b0fe65c989eab818b0264a9eb2
2012-02-07 16:16:27 -08:00
Winson Chung 3bc21c35fa Fixing issue where the outline is on the wrong side of the screen when dragging to final page.
- Also allowing pages to snap in springloaded mode without moving your finger.

Change-Id: I868f700bd740f2cd1e02023e1dee0f66b0799c58
2012-01-20 14:00:00 -08:00
Winson Chung aa15ffe60e Allowing dragging to edge and holding to continue skipping pages.
Change-Id: I254f267e2ed04980925f71b7c96c2cac11f350ec
2012-01-18 15:45:56 -08:00
Michael Jurka 92f3d46cf3 Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
2011-11-28 10:51:22 -08:00
Winson Chung 3f4e142380 Minor fixes to Launcher
- Tweaking the AllApps tab padding
- Fixing issue where the cling punch out might be in the wrong location
- Removing unused dragging code related to drop/scroll area overlap
- Tweaking padding so that picking up an icon on the top row does not automatically hover over delete (Bug 5636264)
- Fixing issue where multiple bgs in AllApps tab bar line makes it look blurry (Bug 5523822)

Change-Id: I707397c231188a9feee8c0856374e0483cf37296
2011-11-18 10:13:04 -08:00
Winson Chung b8c69f3c17 Fixing issue where holographic outlines were offset when dragging from/to folders/hotseat. (Bug: 5399792)
Change-Id: Iaa39ef1293b45a1d116210ec9d7fbde17dbc99cc
2011-10-19 23:57:04 -07:00
Winson Chung a182096cb2 Fixing crash when you are dragging an app and the packages change under you. (Bug: 5280181)
- Removing unused dimension for app icon content size

Change-Id: If3910010577e902937d284296479f9a699516de3
2011-10-04 11:29:11 -07:00
Winson Chung 3e0839e5f8 Fixing issue where dragging in the hotseat could trigger scrolling to side pages. (Bug: 5151006)
Change-Id: I1b1b98ecc87180fa5994f46194f1b5668e618b91
2011-10-03 15:15:51 -07:00
Adam Cohen 36cc09b07b Fixing issue with cancelled drag blocking cell spaces (Issue 5386523)
Change-Id: I9cfc728edeeee2237c21935517107e7a2af49646
2011-09-29 17:33:15 -07:00
Michael Jurka c57b7a8233 Adding a progress bar while All Apps is loading
- also, removing some unused imports

Change-Id: Icf46beb9fa9d89bc06cba33c148ceb7d668cd402
2011-08-09 22:36:01 -07:00
Adam Cohen 9932a9b1e6 Fixing weird deferred click events after deleting folder
-> Fixing issue 5055487

Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
2011-08-02 22:26:50 -07:00
Winson Chung 1c4cf4a11f Minor bug fixes
- Making the spring loaded side page hovers slightly faster
- Fixing issue where you can't drag over another item on another page to create a portal
- Ignoring side pages while hovering over hotseat
- Fixing issue where hotseat may be stuck in shrunken state (and removing the scale on the hotseat)

Change-Id: I87d50a1bdc451704285482c79caed0982a5a7f5a
2011-08-02 14:06:55 -07:00
Adam Cohen fc53cd22c9 Fixing a couple bugs, allapps clicks and weird crash
-> issue 5021897 (when this was fixed, exposed more bugginess that is now fixed)
-> issue 5038392

Change-Id: I49a4e9fca154f75ea22ad2c462641747536102ce
2011-07-20 17:59:04 -07:00
Winson Chung 273c102240 Clamping touch positions to drag layer rect to prevent dragging outside of bounds.
- Fixing small issue with default widget preview aspect ratios

Change-Id: I2dca0524e8aa7c48345b424bad889736fa345386
2011-07-11 14:00:02 -07:00
Adam Cohen 8dfcba4af7 Substantially improved performance of dragging and drop animations
-> Took DragView drawing out of the window and put it into the DragLayer
-> Added fade-in/out animations to transition between the final view
   and the DragView, after the view animates
-> Enabled hardware layers on Folder items which improves the
   performance Folder reordering

Change-Id: I4d92ca9fba172d1bab9efc215a99abcaadcdf503
2011-07-07 16:59:45 -07:00
Winson Chung c07918d005 Cleaning up some spring-loaded related dragging code. Allow cancel spring loaded mode.
Change-Id: Ie1f0468c563bed7abc1aa6416e222cdb0853c03a
2011-07-06 20:48:45 -07:00
Adam Cohen 716b51e030 Adding transitions after reorder within folder
Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
2011-06-30 13:53:30 -07:00
Adam Cohen bfbfd26c62 Initial implementation of folder reordering
Change-Id: I9f700e71f46e3b91afa96742d9e3890d519c391d
2011-06-13 16:55:12 -07:00
Adam Cohen c0dcf59708 Fixing up some Folder bugs
-> Rendering properly while in spring-loaded mode
-> Fixed bug where sometimes the folder's background would vanish
-> Fixed bug where the folder background was "stuck" in a fixed
   location, not following the folder
-> Can now add to folders and create folders from spring-loaded mode

Change-Id: Ie1c5583a6230a192e6d07763d001b50053daca43
2011-06-08 15:21:29 -07:00
Adam Cohen cb3382b1bf Refactor of Launcher drag and drop to use a DragObject
-> DragObject contains a bunch of parameters instead of pssing
   them each individually

Change-Id: I709cf320fe4234d71e19325d5c761dd9a9bba405
2011-05-24 16:17:13 -07:00
Adam Cohen e3e27a854f Cleaning up drag and drop visulization and drop location determination
-Visualization and drop location always match now
-Improved the location determination/visualization for widgets
 in spring loaded mode
-Simplified and fixed some other discrepencies

Change-Id: I4b46f415a547e4df778c70a8b87f341a909d10c1
2011-04-15 13:29:26 -07:00
Patrick Dubroy b0a6bbeeab *Actually* fix 3377113: Mini homescreen outline wrong color
New and improved! 100% fewer regressions!

Change-Id: I079a7842ecfe7e84c3fd599d6156638588a1d2d0
2011-03-02 18:40:21 -08:00