Commit Graph

139 Commits

Author SHA1 Message Date
Winson Chung 2890151ad0 Merge "Remove all deferred widget pages when we cancel all tasks. (Potential fix for bug 6387680)" into jb-dev 2012-04-25 16:43:09 -07:00
Michael Jurka 8b805b1715 Remove use of private APIs
Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
2012-04-25 16:24:03 -07:00
Winson Chung 83687b1e5b Remove all deferred widget pages when we cancel all tasks. (Potential fix for bug 6387680)
Change-Id: I65ad089ff20daffdc8ba09d975ac31e87965a4a7
2012-04-25 16:01:43 -07:00
Winson Chung c7450e3ebd Updating launcher transitions.
Change-Id: I32b35189fe05a1c0db0ac1d7f508b1560088f635
2012-04-24 13:27:00 -07:00
Adam Cohen 336d491492 Fix issue where certain widgets don't appear in tray (issue 6339060)
Change-Id: I3e16021da11d67b6e59ec2f4e251927362bf4fe6
2012-04-13 17:57:11 -07:00
Michael Jurka 3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Winson Chung a5c9636f56 Preventing widgets that don't fit from showing in tray. (Bug 6331357)
Change-Id: I9cbe85bed5c633f2be9b420eecbbee9a1b171e51
2012-04-12 16:21:17 -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 1f36270212 Some changes which are effectively no-op right now, but will be useful
for testing widget size reporting APIs

Change-Id: I7a47afcd25e45b7f3914ece6796b006153900054
2012-04-04 15:02:26 -07:00
Michael Jurka 031d3d8838 Merge "Fixing potential crash when trying to create 0x0 bitmaps" 2012-03-26 10:59:13 -07:00
Michael Jurka c7e52f55d6 Fixing potential crash when trying to create 0x0 bitmaps
Bug: 5926437
Change-Id: Id1284584104b1c4933525ea5e8744338718e4986
2012-03-26 10:58:16 -07:00
Winson Chung 93eef082ec Making the text reflect the container when you are unable to drop onto a space.
Change-Id: Ib3734b7f7767bdf0fb4c95dcc1298da02c04e9cd
2012-03-26 10:55:49 -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
Michael Jurka 6f8cb5201d Merge "Fix more cases where blips show up in All Apps" 2012-03-21 14:25:11 -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
Michael Jurka 39e5d176e6 Fix more cases where blips show up in All Apps
- defer any updates to the widget previews if we're
mid-transition
- call System.gc() before a transition to avoid gc
mid-transition

Change-Id: If8b4699b142af20b2f14e9a8653f893139adf90e
2012-03-20 01:40:41 -07:00
Adam Cohen d41fbf5680 When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it
   in its current (or default) size, but can be scaled down to fit
   a certain area, it will be resized to fit the available space
-> The resizing is animated using a crossfade and scale between
   the original dragView and the widget rendered in the final size

Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
2012-02-27 17:30:32 -08:00
Winson Chung 72d598400d Animating the widget previews on drag from AppsCustomize.
Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
2012-02-23 12:21:12 -08:00
Adam Cohen 7a326648c5 Fixing issue where widget preloading not being cleaned up on failed drop
-> issue 6046370

Change-Id: Iee33fc22ae0bfe012fe33efd5b358a2199fdf424
2012-02-22 12:03:22 -08:00
Adam Cohen ef3dd6efe0 Fixing bug where widget preview wasn't fully updated upon drop
-> The prebound widget is now added to the DragLayer to ensure
   that it goes through all necessary measure/layout/attach etc.

Change-Id: I53ca32e88fcbc2211d2747c3b067816c0d518e30
2012-02-14 20:55:35 -08:00
Winson Chung 2210d2ad0c Merge "Animating the drag view scale up and down when dragging items." 2012-02-14 14:59:30 -08:00
Adam Cohen 1b36dc3f2b Fixing bugs with new widget adding
-> widget ids were being reused in some cases
-> widgets could be added before springloaded mode was entered

Change-Id: Iaf3bffc49d4ec2de4b63db1b5cfb52b8544e9c2b
2012-02-13 19:50:10 -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
Adam Cohen ed66b2bac7 Improving widget transitions:
-> When a widget has no configuration activity, we bind
   and inflate it when the user picks it up. This allows
   us to smoothly transition between it's preview and
   some actual state of the widget when it is dropped.
-> When a widget has a configuration activity, we delay
   the above process until the configuration activity
   has been run at which time we transition between
   the preview and the actual widget.

Change-Id: I5265cd98400d70e5e75c3dcd21e322ed0b352d7b
2012-02-13 13:30:32 -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 3b187b88ba Fixing issue where AllApps icon would stay dimmed after pressing it (but not launching or long pressing).
Change-Id: If60fd76cd1fbef0b235c0a3d0870fd2da4c1b833
2012-01-30 15:11:50 -08:00
Winson Chung e4e506660b Locking pressed state for AllApps icons.
- Setting workaround for transition state bug until b/5897600 is fixed.

Change-Id: Icb29a4cd7bfaf527a9db5b853e7fb24c63b58b30
2012-01-24 13:15:23 -08:00
Michael Jurka e3517d01ec Speeding up AllApps click feedback
Change-Id: Ia16845b16d369bea610bb908d9a9f4805d4a1d54
2012-01-12 11:16:07 -08:00
Michael Jurka 298ce02189 Merge "Delete dead code" 2012-01-12 10:43:21 -08:00
Michael Jurka 82369a1612 Delete dead code
Change-Id: Iabe9cf9a4254ce4d90849f6fb9bd82a043beba2a
2012-01-12 08:11:12 -08:00
Winson Chung 649668f7af Fixing issue where we may continue to restore the wrong page after resetting.
- Fixes issue where selected tab and all apps page are out of sync
- Potentially fixes issue where the allapps comes in from the right

Change-Id: I03fe1fe339ef53aa442c411939250c8094519394
2012-01-10 13:08:32 -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 8171d8ce48 Merge "Fixing issue where shortcut holographic outlines were different than widgets. (Bug 5659891)" into ics-mr1 2011-11-23 17:00:17 -08:00
Winson Chung 1120e03557 Fixing issue where shortcut holographic outlines were different than widgets. (Bug 5659891)
- Also fixing regression where widget drag previews weren't slightly translucent

Change-Id: I5370819589a2fc839df8742cda5156aec986b47d
2011-11-22 17:00:50 -08:00
Michael Jurka e326f186af Unload widget previews when launcher is not visible
Can save ~1-2MB of RAM

Bug #5104303

Change-Id: I992bec33052f4d2c201e528b5edf384d05960e71
2011-11-22 17:00:06 -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 68e4c64a67 Small changes to help AppsCustomize scrolling.
- Adding lookahead for prioritizing pages about to be visible
- Making fixed window for loaded adjacent pages
- Tweaking thread priorities on bg tasks

Change-Id: Ib2bccedb9cd7c4396ffaf8d7e1cb4820789960e5
2011-11-14 15:50:57 -08:00
Winson Chung c6f10b906f Workarounds for a couple crashes. (Bug 5612584, Bug 5613438)
Change-Id: I9669d830a10cc98291737f3f1d561c846c408289
2011-11-14 13:29:25 -08:00
Michael Jurka 038f9d8bfb Widget preview improvements
- Make widget preview bitmaps as small as they can be, saving ~0.7-2MB peak memory (5104303)
- When adding/dragging a widget, make the drag outline/drag view much more closely match the actual size (5566938)

Change-Id: I5b5b7b84fa551d56432a76223b1a9e4de620ff56
2011-11-11 16:27:31 -08:00
Michael Jurka fd99e7776a Merge "Fix NPE that occurs with poorly behaved widgets" into ics-mr1 2011-11-11 13:49:34 -08:00
Adam Cohen ebea84d1c9 Unifying overscroll btw phone and tablet
-> Using separate assets for removing and uninstalling

Change-Id: I183967c3ca482531ae28f71cd9053b673c6a8d03
2011-11-11 11:38:53 -08:00
Michael Jurka dbc1f65786 Fix NPE that occurs with poorly behaved widgets
Bug #5587311

Change-Id: Ida55463575ae94bc469bd2caae4c8b99e54d5a6b
2011-11-10 17:16:19 -08:00
Michael Jurka 31234d811d fix build 2011-11-10 15:15:15 -08:00
Adam Cohen 619643af9a Merge "Fixing issue where you could click through to next page in AppsCustomize (issue 5501400)" into ics-mr1 2011-11-10 15:05:24 -08:00
Michael Jurka 81efbad05e Reduce unnecessary layout passes
- Also delete unused code
2011-11-10 11:22:48 -08:00
Adam Cohen 4e84401aa8 Fixing issue where you could click through to next page in AppsCustomize (issue 5501400)
Change-Id: I3cb7a640d24598a2d65c436763196b997626a506
2011-11-09 15:17:46 -08:00
Winson Chung 6032e7ed8e Fixing issue where AllApps labels were getting clipped (Bug: 5490118)
- Tweaking the AllApps grid spacing

Change-Id: I7eb79edfd170500c1fecd6841e6f022bd40ac250
2011-11-08 15:54:45 -08:00
Adam Cohen 55f57c49cf Merge "Launcher performance optimizations: shaving about 3ms off Workspace.dispatchDraw()" into ics-mr1 2011-11-01 12:45:07 -07:00
Adam Cohen 73894964c2 Launcher performance optimizations: shaving about 3ms off Workspace.dispatchDraw()
-> Caching values of getChildOffset() and getChildRelativeOffset()
    -> Using fast invalidate pattern in workspace#screenscrolled
    -> eliminated updateAdjacentPageAlpha, combined with screenScrolled
       code where appropriate to take advantage of fast invalidate
    -> removed a bit of dead code (just for cleanups sake)

Change-Id: Id91542ff846d9495a0370707d02d1f647dab22d4
2011-10-31 14:52:24 -07:00