Commit Graph

491 Commits

Author SHA1 Message Date
Michael Jurka bed61d22bd Revert "Revert "Speed up All Apps -> Workspace transition""
- also, undo enabling hardware layers for
    scroll indicator, which could have caused
    slowness
- fix bug where scroll indicator was not seen
    after the first visit to all apps
- eliminate a some needless hardware layer redraws
- making items under All Apps invisible when we're
    in All Apps
- making workspace spaces invisible if their alpha is 0
    to prevent more hardware layer rebuilding

This reverts commit 9753d13c7b.

Change-Id: Ib908ae0b456b2d4b8a171991a95f20aea4749da1
2012-02-15 20:22:50 -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
Adam Cohen 038085598c Merge "Fixing annoying bug where widget would drop to side page" 2012-02-14 16:45:40 -08:00
Adam Cohen 82ac8a2488 Fixing annoying bug where widget would drop to side page
Change-Id: I7e8bf298e01666fe29abc322b45f2538569c5ed9
2012-02-14 16:27:49 -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
Winson Chung a61dc4290d Fixing issue where smallest screen dim was not taking dpi into account.
Change-Id: I1efacf693200f490c506050ce36403db224b5846
2012-02-14 14:45:57 -08:00
Winson Chung 54d9fc2830 Merge "Revert "Speed up All Apps -> Workspace transition"" 2012-02-14 13:38:35 -08:00
Michael Jurka 9753d13c7b Revert "Speed up All Apps -> Workspace transition"
Temp fix for 5976264

This reverts commit 9433fa7eba.

Change-Id: Ic49ffc818b9b233b3717b52a5f77eaac1e001f5b
2012-02-14 13:36:59 -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
Adam Cohen 6af9af057f Fix issue where launcher didn't return to workspace on screen off (issue 5628744)
Change-Id: Ic058cf7a803d2fe7be98325138cd5bd52a96cd9c
2012-02-02 15:41:45 -08:00
Winson Chung b33e05fa50 Fixing two regressions in which side pages were not drawn or oriented correctly.
Change-Id: Ib936d7701c8962fc04e6fed2e3d624291fe8fc46
2012-01-30 17:20:47 -08:00
Winson Chung d7654c416c Merge "Showing page indicator while dragging (Bug: 5117192)" 2012-01-24 13:25:34 -08:00
Winson Chung 1afedc379f Showing page indicator while dragging (Bug: 5117192)
Change-Id: I3c8180b2166f3961fbb9529c5de187b4b7b561cf
2012-01-24 13:19:55 -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 28c1854896 Merge "Speed up All Apps -> Workspace transition" 2012-01-23 07:24: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
Michael Jurka 9433fa7eba Speed up All Apps -> Workspace transition
- use HW layers on Views whose alpha is faded
- don't run animation end code until the entire launcher
transition is finished
- be more aggressive about making workspace pages visible
after an animation, potential fix for Bug #5867739

Change-Id: I52a088e551c1636a67725629640286b885070f32
2012-01-20 06:50:06 -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 7372c59277 Remove use of setFast* properties
Change-Id: Ibfae0eed65d384789929829d6a24379561934eb4
2012-01-16 04:21:35 -08:00
Michael Jurka 7407d2a16e Using ViewPropertyAnimator for animations
Replacing some use of fastInvalidate/setFast*
methods with ViewPropertyAnimator animations

Change-Id: Id5a8934b38d9ae3a95b6dccb431f9787839d2927
2012-01-10 01:53:59 -08:00
Michael Jurka 80c69853d6 simplifying code to prevent drawing off-screen
On certain graphics drivers, if you draw to a off-
screen buffer that's not used, it can lead to
poor performance. We were running into this in 
launcher; when setChildrenLayersEnabled was called
on a CellLayout, that triggered a re-draw of that
CellLayout's hardware layer, even if that
CellLayout wasn't visible. This CL changes
PagedView so that pages that aren't going to be
rendered are set to View.INVISIBLE, preventing
re-drawing of their hardware layer.
2011-12-16 14:26:24 -08:00
Michael Jurka 58e8b25c59 Merge "Small optimizations for the All Apps transition" 2011-12-15 13:42:02 -08:00
Michael Jurka afaa05014e Small optimizations for the All Apps transition
- don't set properties in animations if they don't
change
- don't recalculate visible pages on every frame
- don't require scroll indicator to be an
ImageView

Change-Id: I099b29e677da2d0e401f677d47cdb8b5df51224e
2011-12-15 13:27:32 -08:00
Adam Cohen 6441de0ec2 Fixing subtle animation jank when dropping icon on adjacent page
-> The old path of the icon wasn't correct from a motion standpoint

Change-Id: Icb4b06b5cd5649e983d43953ff369d1d8d8cdee2
2011-12-14 14:38:06 -08:00
Adam Cohen 8a18afc4aa Fix issue where crosshairs wouldn't disappear (issue 5190654)
Change-Id: Id5fc7257021b20680fec1f2c215d95dac425d4d4
2011-12-13 17:38:21 -08:00
Michael Jurka 2a4b1a809c Make All Apps<-->Workspace transition smoother
- grouping workspace/all apps anims into one
animator set, prevents blip when one of them ends
early and its end anim handler does lots of work
mid-animation
- updating pivots for all apps zoom if layout
changes
- avoid running unnecessary animations on
workspace pages
- prevent unnecessary reloading of pages in
All Apps

Change-Id: I53a75f7c4c7d254057e2f8f4fd17711e8862256d
2011-12-12 15:30:58 -08:00
Adam Cohen 265b9a6654 Scaling PagedView fling constants by density (issue 5594666)
Change-Id: I3f37b820fb9864091a02a51b354f10f9a0fa2ac7
2011-12-07 14:37:18 -08:00
Michael Jurka 7e38964c43 Merge "Clean up unused code and import declarations" into ics-mr1 2011-11-28 18:48:04 -08:00
Winson Chung e96e5cb768 Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226)
- Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226)
- Fixing regression where the market button had no press feedback

Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
2011-11-28 16:24:54 -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 65f9e9d45b Merge "Preventing springloaded mode from snapping back due to timeout. (Bug 5649189)" into ics-mr1 2011-11-23 15:38:42 -08:00
Adam Cohen ea49c1c861 Merge "Prevent the creation of Shorcuts with null intents (issue 5629292)" into ics-mr1 2011-11-23 14:37:59 -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
Adam Cohen d919882006 Prevent the creation of Shorcuts with null intents (issue 5629292)
Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
2011-11-22 16:51:26 -08:00
Winson Chung 96ef409ebd Preventing springloaded mode from snapping back due to timeout. (Bug 5649189)
- Also allowing drop on all apps button to cancel a drag

Change-Id: I27252bd34c591882d8c5f80389d8fd6f4f6e4791
2011-11-22 14:21:08 -08:00
Adam Cohen 026df005fb Merge "Fixing bug where drag would sometimes get cancelled inadvertently" into ics-mr1 2011-11-21 15:11:43 -08:00
Michael Jurka a21e9537ba Merge "Potential fix for out-of-date hardware layers" into ics-mr1 2011-11-21 13:18:33 -08:00
Michael Jurka dfab7f0285 Potential fix for out-of-date hardware layers
Might also further help bug where IMG GPU slows
down when rendering into hardware layers that are
not rendered to framebuffer

Bugs # 5614712, 5616414, 5628998

Change-Id: I85ff11889aa28f6985dd68e7f1e57d0da2150aa5
2011-11-18 17:07:51 -08:00
Adam Cohen 74c28d1a6c Fixing bug where drag would sometimes get cancelled inadvertently
Change-Id: I4e838836c5a943abe9ebe2437cb53f68e6aae3d0
2011-11-18 14:17:11 -08:00
Adam Cohen aa1e57286d Merge "Small fix to deal with ugly widget dropping situations" into ics-mr1 2011-11-18 11:34:22 -08:00
Adam Cohen bad24941cd Small fix to deal with ugly widget dropping situations
-> Tried some more elaborate fixes in which aspect ratio of the
   preview were not preserved. Given that nothing clearly always
   better, going with a simple fix for now.

Change-Id: I3dccf95680da55cccfb6f00befe88cea4bbe0035
2011-11-18 10:16:53 -08:00
Adam Cohen b0736fac73 Merge "Fix hiccup when dropping in springloaded mode on large ui" into ics-mr1 2011-11-17 10:28:02 -08:00
Adam Cohen 70ed13b370 Fix hiccup when dropping in springloaded mode on large ui
Change-Id: I434c594e0d2c94b122cd3336f36c529e6c3d1066
2011-11-16 15:59:40 -08:00
Michael Jurka b737ee6ab2 speeding up transition from other apps -> Launcher 2011-11-15 16:36:30 -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