Commit Graph

226 Commits

Author SHA1 Message Date
Adam Cohen 215b416c1f Fix an error that is not being expressed
Change-Id: I8c3488906b5b95aaf20b996f488ff01bad76300c
2012-08-30 13:19:39 -07:00
Adam Cohen e0489500d2 Fixing a couple small issues with reordering (issue 7064138), (issue 7064337)
Change-Id: Iaaeb37f630a71f8fd54a6064602ddd10d4d4ab91
2012-08-27 15:19:51 -07:00
Adam Cohen 1dc3b9abd5 Merge "Adding the ability to scale the hotseat or items in the hotseat" into jb-mr1-dev 2012-08-24 13:05:26 -07:00
Adam Cohen 307fe23f12 Adding the ability to scale the hotseat or items in the hotseat
--> A bunch of stuff breaks when scaling the hotseat. More specifically,
    drag and drop animations between hotseat and workspace,
    scaling on pick up, folder animations, determination of
    item placement. This CL fixes these issues so that the
    hotseat or hotseat items are ready to be scaled.
--> For now, using 90% scale factor for 7-inch+ UIs

Change-Id: Iac098409347e76139e4d726a071397b56ac684d2
2012-08-20 21:49:43 -07:00
Michael Jurka ddfe982177 Remove unused import
Change-Id: I2eaf2b33e3b61fed86a468fbd221fd12191a396f
2012-08-15 22:48:01 -07:00
Ed Heyl 90abcc9425 resolved conflicts w/0ede734d0780a968c9c345f99a18f9f8b9fc02cd
Change-Id: I50900698a590e8d84a6cbcc560f95209d3a6d110
2012-07-25 14:52:36 -07:00
Adam Cohen 1462de39f0 Ensuring that restoreInstanceState is being called promptly for synchronously bound page
Change-Id: I0e71c29f553ad360ec42a6a0b2529d16cbddd437
2012-07-24 22:34:36 -07:00
Adam Cohen a56dc1077e Fix issue with push in reordering (bug: 6259603)
Change-Id: I7ca0abe7f0ef7559ef60f902fb18718fba5a7532
2012-07-13 13:42:23 -07:00
Adam Cohen 92750b1d78 Merge "Trying to track down corrupt database / items disappearing" 2012-07-09 14:52:25 -07:00
Adam Cohen 487f7dd305 Trying to track down corrupt database / items disappearing
-> Adding logs for all database transactions
-> Adding sanity checks for items in folders, throwing exceptions
   if they are violated
-> Reducing database upates when re-arranging items, only
   update if values have changed
-> Removed some dead code from ItemInfo (isGesture?)

Change-Id: Ia5cd57d92082f633dbf4aa5d64612cbae2d82bb4
2012-07-09 14:49:19 -07:00
Michael Jurka ca99383dae Disable hardware layers for drag views
Also, avoiding allocating paint object every time we swipe
2012-06-29 15:17:04 -07:00
Michael Jurka d51f33a631 Only enable hardware layers on visible workspace pages
Change-Id: Id82fc76d00a188556460d1a78388d46be56c9c4e
2012-06-28 17:32:24 -07:00
Michael Jurka b1daa48fc8 Remove unneeded imports
Change-Id: I96e125c5ddbde7df10847e9514b947c80292ea40
2012-06-25 13:06:43 -07:00
Michael Jurka 2ecf995e0d Remove use of private ValueAnimator api
Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
2012-06-19 11:44:57 -07:00
Michael Jurka 629758ff08 Remove unnecessary use of some private APIs
Change-Id: Idaba6833ddf4a8615845ca2f643c458bdeb9c403
2012-06-19 10:32:38 -07:00
Adam Cohen 4abc5bdfdf Improve reordering by always using the "push mechanic" if possible (issue 6275309)
Change-Id: I51450c1b1f6b439c87194a6084d82fb9989154a7
2012-05-29 21:27:46 -07:00
Adam Cohen e7587d2f23 Fix issue where reorder animations could leave views in translated state
Change-Id: I75f590c4ba43fec0550bbd003022d5c8309881a3
2012-05-24 18:50:41 -07:00
Adam Cohen d024f9845a Cleaning up some reordering issues:
-> Reorder solution should never change unless target cell changes
-> Simplified code and improved the behaviour when items' jiggle
   animations switch from one direction to another. These transitions
   are now seamless and have no more strange delays.

Change-Id: I35d70f275d622501851328584bfcb46eec91ff3b
2012-05-23 18:57:49 -07:00
Adam Cohen fe41ac641b Fix issue with re-order animation not hinting the correct direction
Change-Id: I5fdf55615fde974c2cc8ae1276031f413713cb10
2012-05-23 14:00:37 -07:00
Adam Cohen 7bdfc9700b Fix a couple small bugs (issue 6539339)
-> Adjusting the character of the 'shake' animation to keep
   a single phase, and instead stagger the animations slightly
-> Fixing issue where widget is not given the size change callback
   if the widget is resized on drop

Change-Id: I9cd9e6cd39009d9e5c70e745812b6ece71b845ee
2012-05-22 16:53:10 -07:00
Brandon Keely faf22e15f1 Ensure that rearranged widgets return to translationY=0
Change-Id: Ic29220624f8103eddfcbcc81d56f355f99322ca0
2012-05-10 16:48:50 -07:00
Brandon Keely f32d71aa50 Merge "Adjusting animations for home screen widget reordering." into jb-dev 2012-05-09 10:37:59 -07:00
Brandon Keely 50e6e565bc Adjusting animations for home screen widget reordering.
Change-Id: Ic019b0db8456159d9577acb9a03e24f0d669869b
2012-05-08 16:28:49 -07:00
Michael Jurka df4c0e25e5 Merge "Don't show the outline on the current page" into jb-dev 2012-05-08 14:30:12 -07:00
Michael Jurka a3d30adbfd Don't show the outline on the current page
- only on sw720dp+ devices

Change-Id: I7253bedbf6dd61c766fe7e9ad861d3a917d37fed
2012-05-08 13:54:21 -07:00
Andrew Flynn de38e42fe8 7" launcher changes.
- Shrink icons in workspace (keeping hotseat size the same)
- Increase width of QSB in landscape
- Move QSB voice button to bottom in landscape

Change-Id: I2c0bad4229484f516005592f2c14da1a4939acca
2012-05-08 11:29:33 -07:00
Romain Guy 8a0bff5e35 Remove unnecessary allocations
This change removes a couple of allocations per frame when the user
is trying to scroll past the end of the workspace. The allocated
object, PorterDuffXfermode, is pretty expensive and creating a new
one on every frame could potentially defeat GL rendering optimizations.

Change-Id: Iebaf579d29ad8f14112c5af8cb5dce8d7f4dfbaf
2012-05-06 13:14:33 -07:00
Andrew Flynn 850d2e7185 Support split status bar in launcher
Change-Id: I2f6687f52e8326f80e84251e39bf6cd6dc9b2f2b
2012-05-02 14:15:00 -07:00
Winson Chung e3e03bcd31 Fixing issue where widgets larger than the workspace were now bounded when dropped. (Bug 6424463);
Change-Id: I8dcabd084d79697933f873d44bb390f608780c3b
2012-05-01 16:26:51 -07:00
Michael Jurka dd13e3d0f9 Use public API to get padding 2012-05-01 12:38:17 -07:00
Adam Cohen a897f397e5 Making launcher update widgets with min/max extents
Change-Id: Iba9325eeb95a8a8256ef6f59f4010aff09767892
2012-04-30 12:07:19 -07:00
Adam Cohen f4bd5792d5 Refactoring dimens for cell size / gap
-> fixing some dimens from previous commit

Change-Id: Ibab49bfb0dc403a67ab88c4ecadc49eb533eae29
2012-04-27 15:05:31 -07:00
Michael Jurka af9504dc00 Removing crosshairs
Bug: 6380576

Change-Id: I26f248fa375ae9ad24417bc55401a08bf4f479a5
2012-04-26 13:55:09 -07:00
Michael Jurka 8b805b1715 Remove use of private APIs
Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
2012-04-25 16:24:03 -07:00
Michael Jurka 3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Adam Cohen bebf042666 Widget resizing can now displace items
Change-Id: I005c9aebf64b2d01debe59f86a208075d19476ea
2012-04-12 11:25:34 -07:00
Adam Cohen c6cc61d458 Cleanup and refactoring in relation to drag and drop
-> folder creation, adding to folders, reordering, switching pages
-> ensuring parity of dragEnter and dragExit in cell layouts and workspace
   (neither were consistently getting an even number of each)
-> actually enforced above with exceptions -- probably want to
   take these out, but maybe we can leave them in as warnings
-> fixed bug with mapping points to hotseat
-> fixes other bugs with drag and drop

Change-Id: I564568f810f2784d122ec6135012b67c2e8e7551
2012-04-09 11:41:59 -07:00
Adam Cohen ec11405583 Merge "Fixing launcher ANR (issue 6238175)" 2012-03-29 15:05:59 -07:00
Adam Cohen 5b53f29f80 Fixing launcher ANR (issue 6238175)
Change-Id: I6518ea9e6ce8b50a5f2a3b24e909e18c5b1bde51
2012-03-29 15:02:54 -07:00
Adam Cohen 2acce88b5f Fixing crash when dropping item in hotseat (issue 6246039)
Change-Id: I50ad5439127adbb29423116bf0471a970f62e1bf
2012-03-28 19:31:59 -07:00
Adam Cohen b209e634a2 Fixing small bug where final item position might not match preview
Change-Id: I216bbf2b454f92cf02b2807f684054e4dce6a05d
2012-03-27 17:09:36 -07:00
Adam Cohen ea889a294b Fix non-persistence of launcher (broken by reordering changes)
Change-Id: I6fb9cb2257844e642df9b5599188b1cfce35df9b
2012-03-27 16:54:39 -07:00
Adam Cohen 7fbec10b36 Fixing EmptyStackException (issue 6117943)
Change-Id: If5816c654dc1e4d5de1e72804e4cf1e845336a96
2012-03-27 12:42:19 -07:00
Adam Cohen 19f3792523 Implementing spring-back version of reordering
-> If you hover above occupied cells, we try to find a new location
   for the items. The items only remain in the temporary position
   while the drag ivew is over their original position after which
   they animate back.
-> Items in the temporary positions animate in such a way so indicate
   that they are in a temporary state, and in such a way so as to hint
   at where they will return to.

Change-Id: I7537c65228c505afbd2f1c22938cfd9d7719839a
2012-03-26 18:40:56 -07:00
Adam Cohen 6b8a02d63a Fixing animation bug for reordering
Change-Id: Ibb8f53a9beb2ddcacab93507fe7469639e0e0587
2012-03-22 15:15:38 -07:00
Adam Cohen 8baab35b00 Code cleanup + a bit of documentation for reordering
-> in preparation for more substantial changes

Change-Id: I68657af1efc17be66ab973e0815991d3f1697a1f
2012-03-22 13:29:51 -07:00
Michael Jurka a52570f8f9 Eliminate custom alpha handling in CellLayout
Also rename CellLayoutChildren to ShortcutsAndWidgetsView

Change-Id: Ic2ebc5497adb153cc2fce99730cc2c6fbdc101e6
2012-03-20 11:13:05 -07:00
Adam Cohen 47a876d443 Tweaking reordering algorithm -- added "pushing" notion
-> Fixed bug when no available space was found

Change-Id: I90898773d259aa84c89d645a1375f2013a520223
2012-03-19 16:36:44 -07:00
Adam Cohen 482ed823af Initial implementation of CellLayout auto-reordering
Change-Id: Id5b5080e846907a7d9cd6535f6e7285e83a0ff71
2012-03-15 13:48:12 -07:00
Winson Chung eecf02da58 Fixing some issues/regressions related to scaled icons.
- Fixes issue with folder icons being clipped in landscape in sw720dp (Bug: 6118397)
- Fixes issue with divider being in wrong orientation in sw720dp
- Fixes issue with scaled icons not being drawn with filtering
- Fixes issue with side pages showing under the hotseat when in landscape in phone UI
- Animates the drag view on pick up and drop

Change-Id: Iad26427ec63fcbc9bdb3b29a4645689ba445d5c8
2012-03-08 13:37:46 -08:00