Commit Graph

114 Commits

Author SHA1 Message Date
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
Winson Chung 0b9fcf5686 Fixing issue where default widget previews were not using large icons on tablet.
Change-Id: I66469f52172be8ee526dc71cc5b6aa797f6a3289
2011-10-31 13:05:51 -07:00
Winson Chung b5e74c8b60 Fixing issue where widget previews were being scaled up.
Change-Id: I94eaa1beb0579c8045a3b4c6ff72f7b9622a62ff
2011-10-28 16:43:21 -07:00
Michael Jurka c5deca7c6a Merge "Asset updates" into ics-mr1 2011-10-27 11:40:13 -07:00
Peter Ng 8db7000140 Asset updates
- Change how default widget previews look (5509429)
- Improve antialiasing in portal assets

Change-Id: I9993aec46a9a9ab8a732b4fc150120c935523f02
2011-10-27 11:26:04 -07:00
Winson Chung 6a87740354 Fixing issue where we were unnecessarily center pages vertically (Bug: 5521605)
- Centering pages vertically have no real effect on the phone as the page height is
  effectively the size of the container, but on tablets, pages can be significantly
  smaller to allow tapping the empty space to dismiss it.

Change-Id: I2f5117c287df6c5357039696f456d1d9d6c2af57
2011-10-26 17:00:42 -07:00
Adam Cohen 2591f6a520 Fixing AppsCustomize paging effect on tablet
Change-Id: I9ec1faeb4efa1b3db338bf47dceee72befbc682e
2011-10-25 14:37:45 -07:00
Winson Chung 6a8103c7ef Adding check in when getting current tab tag to prevent crash/NPE. (Bug: 5492469)
Change-Id: I51960bafbf1a9b2201639fb34786a7415e1e57dd
2011-10-21 11:09:16 -07:00
Adam Cohen dd3a3d9cf9 Merge "Fixing AllAppsCustomize Keyboard Accessibility / NPE (issue 5483485)" into ics-mr0 2011-10-20 14:41:47 -07:00
Adam Cohen ae4f155e09 Fixing AllAppsCustomize Keyboard Accessibility / NPE (issue 5483485)
Change-Id: I841823e28bf419028afea2a57352c4ad45c7c4a0
2011-10-20 00:18:52 -07:00
Winson Chung 4b0ed8c09e Adding additional cases where we may have to recalculate the number of apps/widget pages. (Bug: 5475261)
Change-Id: Ia5f0cea7a3b8bd0a972ec3ea2fadc72eb0f7689a
2011-10-19 15:26:07 -07:00
Adam Cohen d3357b186d Fixing all apps accessibility (issue: 5478505)
Change-Id: I8f5ba2e4acd620520a57ef0b464171c6e0966d4e
2011-10-18 14:58:50 -07:00
Adam Cohen b64d36e6f8 Fixing stutter in AllApps transition
-> Tightened up the interpolator and decreased the duration of the
   AllApps-in animation. This removes many excess frames at the end
   of the transition, and frees up perf for swiping AllApps:
   (issue 5359751)
-> Changed when AllApps state gets reset -- now only after
   leaving home, and then pressing home, or when the screen
   turns off.

Change-Id: I76e988102da91c12cb52af01468cf9a81fe45545
2011-10-17 21:53:41 -07:00
Adam Cohen 0cd3b64e60 Add ability to swipe from apps to widgets in AllAppsCustomize (issue 5453016)
Change-Id: I4d725cf1ee11d67f5149dbd0edbcb2e0af3b80ee
2011-10-14 16:50:14 -07:00
Winson Chung 5fc72b3186 Fixing some issues with AppsCustomize
- Tweaking the widget page to make it a little tighter
- Altering the way we generate widget previews to make them more consistent
- Making the Apps page two line titles

Change-Id: I7bce420466c1d41fb87b423f259472482803a406
2011-10-11 18:20:33 -07:00
Winson Chung 8ff8713e55 Workaround for stingray crash due to using old bitmaps. (Bug: 5397469)
Change-Id: Icf7b13926aff3fdc4f658a549309ec4587ab0fa3
2011-09-30 19:41:08 -07:00
Winson Chung e4a647f879 Slight change to inflate as much of the widget info as possible ahead of bg preview loading.
Change-Id: Id2a7ec79674f2d0a58afef3cfd57091dbf0bc736
2011-09-30 14:51:06 -07:00
Winson Chung 099459377a Clean up bitmaps when necessary in the widget tray to prevent likelihood of OOM. (Bug: 5348390)
- Removing some old code to use software layers when rendering widget preview metadata

Change-Id: I0db3daf7d1223e81dac6c901647acbe2ff490c6e
2011-09-29 12:52:22 -07:00
Winson Chung 7f0acdde96 Deferring create hardware layers until we load widget pages. (5330412)
Change-Id: Ia1b5e3ec3db7b7de4b0a76486136ba9df07ff70f
2011-09-19 18:36:48 -07:00
Winson Chung 7d7541e7b4 Updating Clings. (5057945, 5056643)
Change-Id: Ifb2d37e92495aeddf9d4b3277eb8d2a846f4aa99
2011-09-18 18:38:11 -07:00
Adam Cohen 446e940fc8 Locking orientation on phones (issue 4967793)
Change-Id: I6b5fe63547f43c408feea75f35dc0a08d06c258c
2011-09-15 20:08:40 -07:00
Adam Cohen cff6af81d7 Tuning AllApps <--> Workspace transitions
-> Removed extraneous service transactions during scrolling

Change-Id: I60a201e7a94608d6fbafd2350f39a466d7a4c003
2011-09-14 14:04:49 -07:00
Adam Cohen 61dcf3759f Fixing regression with widget sizes
Change-Id: Id013ceaaf08ce2bfddd997b49843384082bc6834
2011-09-13 15:01:58 -07:00
Adam Cohen b5ba097015 Workspace overscroll effect
-> Made AllAppsCustomize scroll/over scroll more subtle

Change-Id: Icf1889b3adccce22d4a2d80c5b487518b0ab3157
2011-09-11 17:24:49 -07:00
Adam Cohen 859736e78a Merge "New AllAppsCustomize transitions" 2011-09-08 11:40:14 -07:00
Adam Cohen 22f823d340 New AllAppsCustomize transitions
Change-Id: Ibefda8bf156810849c5e8f3383d49ae64a7ee08a
2011-09-07 18:16:11 -07:00