Commit Graph

152 Commits

Author SHA1 Message Date
Adam Cohen 0e56cc9fd6 Fixing bug where widget could get added to drag layer and not removed (issue 6282757)
Change-Id: Ibc32b48f12e1c37267e140e82e1620bcb407963c
2012-05-13 15:59:07 -07:00
Adam Cohen f1dcdf6113 Fixing widget overlapping another widget (issue 6475997)
Change-Id: Ic78afc0ef5a2eab2278feb080f6b81d4b2baaed2
2012-05-10 16:52:25 -07:00
Adam Cohen 88c5d2d8eb Fix NPE when dragging widget with preview not yet loaded (issue 6282761)
Change-Id: I95638884bd6548f391135427a20566933ab757c0
2012-05-10 10:21:48 -07:00
Winson Chung 18f41f8327 More work to ensure that the wallpaper is visible before transitions take place. (Bug 6445085)
Change-Id: Ic8435ba946949674a986aa4eaa879d33044c7884
2012-05-09 13:29:31 -07:00
Winson Chung ca889b3482 Consistently re-enabling the wallpaper when we leave launcher. (Bug 6445085)
Change-Id: I8357677479a693a808097a797b9af6906f4d7801
2012-05-07 15:35:59 -07:00
Winson Chung 5e024a3c9c Merge "Fixing regression where the proper rotation check was not being done. (Bug 6422040)" into jb-dev 2012-05-01 12:54:08 -07:00
Winson Chung 4b919f813f Fixing regression where the proper rotation check was not being done. (Bug 6422040)
Change-Id: Iadc9a886b84c4418750dc365298944f76c564587
2012-05-01 10:45:05 -07:00
Adam Cohen 2f093b6ad1 Fix widget resizes that shouldn't (issue 6380435)
Change-Id: Ia1da2df16ca184e6f451775597fa33ee38df6122
2012-04-30 18:59:53 -07:00
Winson Chung a706b090ce Merge "Preventing activity from rotating while the user is dragging an item. (Bug 6240922)" into jb-dev 2012-04-26 16:29:56 -07:00
Winson Chung 641d71d6da Preventing activity from rotating while the user is dragging an item. (Bug 6240922)
Change-Id: Id487e8809c059cecb3310afe098edd0eaf085c90
2012-04-26 15:58:34 -07:00
Michael Jurka a35e35ae0a Solve blip the first time All Apps is launched 2012-04-26 15:05:25 -07:00
Winson Chung 4773408efd Merge "Fixing issue where side pages in all apps were showing. (Bug 6393199)" into jb-dev 2012-04-26 13:29:03 -07:00
Winson Chung d167e2a09f Fixing issue where side pages in all apps were showing. (Bug 6393199)
Change-Id: Ida954e738586a8434a776a23e629bf5d3e06da77
2012-04-26 13:13:24 -07:00
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