Commit Graph

164 Commits

Author SHA1 Message Date
Michael Jurka c0f21e1d3c Merge "Fix occasional odd scrolling behavior" 2012-01-17 12:24:58 -08:00
Michael Jurka dd6c09123c Fix occasional odd scrolling behavior
Change-Id: I4cbcd17ab0bc2212d9591098d9aac6ca3ce6ed7d
2012-01-17 12:12:18 -08:00
Michael Jurka 7372c59277 Remove use of setFast* properties
Change-Id: Ibfae0eed65d384789929829d6a24379561934eb4
2012-01-16 04:21:35 -08:00
Michael Jurka e3517d01ec Speeding up AllApps click feedback
Change-Id: Ia16845b16d369bea610bb908d9a9f4805d4a1d54
2012-01-12 11:16:07 -08:00
Michael Jurka 82369a1612 Delete dead code
Change-Id: Iabe9cf9a4254ce4d90849f6fb9bd82a043beba2a
2012-01-12 08:11:12 -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 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
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
Michael Jurka c02e3932c3 Merge "Reduce peak memory use in PagedView" 2011-12-09 16:27:35 -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 0cad1116ad Reduce peak memory use in PagedView 2011-12-06 18:42:41 -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
Adam Cohen 049abba5a2 Merge "Fixing PagedView bad snap-back decisions" into ics-mr1 2011-11-21 15:11:09 -08:00
Adam Cohen 00481b3ed3 Fixing PagedView bad snap-back decisions
-> There was some code that was causing pages to snap back
   much to the original page much too frequently.

Change-Id: Ibd02ac634c737887a2bcfd7096882c95c51087f1
2011-11-18 12:12:27 -08:00
Michael Jurka b737ee6ab2 speeding up transition from other apps -> Launcher 2011-11-15 16:36:30 -08:00
Adam Cohen 4ff78b0b12 Merge "Fixing place where offset caches weren't being invalidated (issue 5608330)" into ics-mr1 2011-11-15 10:49:51 -08:00
Adam Cohen 60b0712bf5 Fixing place where offset caches weren't being invalidated (issue 5608330)
Change-Id: Ie351580f64591928764071ae29d5f90e2da9f9da
2011-11-14 17:26:06 -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
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 e6dcf26512 Merge "Reduce unnecessary layout passes" into ics-mr1 2011-11-10 15:02:00 -08:00
Michael Jurka 81efbad05e Reduce unnecessary layout passes
- Also delete unused code
2011-11-10 11:22:48 -08:00
Michael Jurka dde558b8b8 resolved conflicts for merge of b9c76f32 to ics-mr1
Change-Id: I7579e312c48c9f9279e93283629036a9332aa34c
2011-11-10 02:36:08 -08:00
Adam Cohen acec671920 Merge "Cleaning up overscroll effect in launcher workspace" into ics-mr1 2011-11-04 13:59:53 -07:00
Adam Cohen 21b411074e Cleaning up overscroll effect in launcher workspace
-> Making sure workspace is drawn above the hotseat and qsb
-> Dimming the dock divider and page indicator during overscroll

Change-Id: I40766aa88e58db2d102c11d1ae8b2455aa459a07
2011-11-03 15:42:39 -07:00
Adam Cohen 25b2995c67 Tentative fix for monkey crash, issue 5556086
Change-Id: Iea6b39133b297dc809e64a20d22156f59950db74
2011-11-02 15:52:56 -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
Michael Jurka 4da7a3e556 Fix NPE
Bug # 5340102

Change-Id: Ibcdb549f4987f67c797c0618c8f54d3b1054261f
2011-10-28 15:28:50 -07:00
Adam Cohen 2591f6a520 Fixing AppsCustomize paging effect on tablet
Change-Id: I9ec1faeb4efa1b3db338bf47dceee72befbc682e
2011-10-25 14:37:45 -07:00
Adam Cohen ae4f155e09 Fixing AllAppsCustomize Keyboard Accessibility / NPE (issue 5483485)
Change-Id: I841823e28bf419028afea2a57352c4ad45c7c4a0
2011-10-20 00:18:52 -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 c27d1bbb26 Fixing issue where we were adding text to each scroll event. (Bug: 5328362)
Change-Id: I9e716535cdf06a2955167b53d788dffc724d1133
2011-09-30 12:10:19 -07:00
Winson Chung 90576b5f09 Fixing some small issues.
- Adding All Apps pressed state (5375824)
- Ensuring the drop targets are single line (5375563)
- Adding some checks in kb focus logic to appease some frantic monkeys (4508638)
- Removing some unused assets

Change-Id: I46702ee25c638849c716f0d8428f68c2b06c1c2e
2011-09-27 18:46:06 -07:00
Winson Chung 7d7541e7b4 Updating Clings. (5057945, 5056643)
Change-Id: Ifb2d37e92495aeddf9d4b3277eb8d2a846f4aa99
2011-09-18 18:38:11 -07:00
Winson Chung c3665faf45 DO NOT MERGE: Fixing regression where scroll position would be offset when rotated.
- Fixes the scrolling issue only in conjunction with framework measure fix
- Updating the wallpaper gallery item background

Change-Id: I156de59a3eadfdaa61018c0a74ad0614d76cde6d
2011-09-15 13:38:54 -07:00
Winson Chung dea74b7d12 Updating assets.
Change-Id: Ieab9698bbbe94a3087c9f405c4318f5575e2a842
2011-09-14 11:31:30 -07:00
Winson Chung ae890b85df Disable fading of side pages on phones. (5270754)
- Fixing small issue with scroll bars not aligning properly.

Change-Id: I000c0b7a26d7e6295d131646be81491a357ffdce
2011-09-13 18:13:32 -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
Winson Chung 09c1552341 Bounding scroll bar to the track to prevent overscrolling.
Change-Id: I2db815e072dcf41dda8102829d136fc2dca588e7
2011-09-09 11:45:50 -07:00
Adam Cohen 22f823d340 New AllAppsCustomize transitions
Change-Id: Ibefda8bf156810849c5e8f3383d49ae64a7ee08a
2011-09-07 18:16:11 -07:00
Winson Chung d11265e373 Overriding onHoverEvent to prevent default propagation.
Change-Id: I64cda2a3342fe256629490e0c557b500ec75034b
2011-08-30 13:38:16 -07:00
Winson Chung ed718b18a9 Merge "Saving/restoring current page in AppsCustomize. (5050168)" 2011-08-18 10:55:17 -07:00
Winson Chung 5afbf7bdd6 Saving/restoring current page in AppsCustomize. (5050168)
Change-Id: Ib868033a2b71383abc4569082675f391d3e4cc76
2011-08-17 10:48:01 -07:00
Winson Chung f314b0eab0 Improving transition between Apps/Widgets panes (5145408)
Change-Id: Id4f73a89b646bbf168ee49e8bdeb34b85a52d9d4
2011-08-16 12:52:39 -07:00
Michael Jurka d771c96e5d Fix regression: taps were not sent to wallpaper
Change-Id: I2114cf8161c7a3b0fa6849f15e5a8e4bd45dbabb
2011-08-09 16:07:40 -07:00
Michael Jurka 86c119a226 Fix visual bugs
- Fix clipping of icon labels on large devices
- Fix bug where icons and widgets on side pages in home workspace were visible on startup

Change-Id: I8c17cfcb1ac27255b955e6db9d0eec7ce3833bd0
2011-08-08 17:03:09 -07:00
Michael Jurka 430e8a5f5b Flash scroll indicators a bit earlier on transitions
Change-Id: I456b61480299b1177d9d275f2cb4459bab02d63e
2011-08-08 15:52:14 -07:00
Winson Chung ea359c6aee Grid spacing fixes
- Restoring old grid for widgets
- Disabling ability to add widgets to hotseat
- Updating holo colors
- Updating assets

Change-Id: I3a639f0afeca9463f8079eb8fbaedf295a41fa0f
2011-08-04 15:50:30 -07:00
Winson Chung 4afe9b31f5 Adding ability to add to hotseat from spring loaded mode (5064141).
- Fixing regression where folder items had no text in tablet ui and assets
- Fixing spring loaded frame sizing (5067335)
- Making the cells 80x80 for testing again on the phone ui (5085986)

Change-Id: I52a0f5eaf2dcf4adaf57c5a71da3903892c490a8
2011-07-29 11:34:23 -07:00
Winson Chung a6427b15c1 Fixing minor bugs (5085316, 5082963, 5042828)
- Adding separator between qsb and workspace content
- Adding a bit of spacing between drawables and text in all apps
- Making the drop target area smaller...

Change-Id: I1bebe7dff20fc30e4896de1dcf23d23b62a31a07
2011-07-27 14:34:03 -07:00
Winson Chung bb6f6a52b6 Fixing regression in divider visibility during spring loaded mode. (5076848)
Change-Id: Ib36e78c840cd2192bdc5f30e425f82e160f63189
2011-07-25 17:56:08 -07:00