Commit Graph

198 Commits

Author SHA1 Message Date
Winson Chung
1ef2123ccd Fixing NPE in updateCurrentPageScroll (Bug 7465970)
Change-Id: I71d2b01518f3f736f6787ff6a503271b9ea7b04b
2012-11-26 14:44:43 -08:00
Chet Haase
36095e861b Merge "Stop animating All Apps during transition to Home" into jb-mr1-dev 2012-10-29 14:24:08 -07:00
Chet Haase
bc2f082dac Stop animating All Apps during transition to Home
One of the sources of jank in launcher is during the All Apps -> Home
transition. specifically, if the user has started a fling operation (where
we are animating between pages in All Apps) and then hits the Home button,
we continue the fling animation while also doing the transition to Home
scale/fade animations. This causes a lot of work for launcher, particularly because
the fling animation is causing the All Apps layer to get recreated on every frame.

The fix is to simply pause the fling animation, then snap to its end state when the
animation to Home is complete. We also need to pause/snap the scroll indicator animation,
because it's fading animation causes the same layer-recreation jank that the fling
itself causes.

Issue #7387124 Home <-> All Apps transition animation is janky while flinging

Change-Id: Icbcaf2d5b3b2f6ce8fd7419419d258248aa1475b
2012-10-29 14:07:33 -07:00
Chet Haase
97687ef66b Cap launcher swipe animations to max duration
large screens take too long swiping between screens. Cap the duration to
some max value to make things snappier.

Change-Id: Iee967c1b00b4962a0490fd0e20d48d7d8363dd2f
2012-10-25 16:01:11 -07:00
Michael Jurka
b1dfe25ae1 Fix 7223056: Enable scroll indicator on tablets 2012-09-26 10:53:55 -07:00
Michael Jurka
3a0469d1e4 Remove use of private api ViewGroup.setChildrenLayersEnabled
Change-Id: I877bd84c6846ae232e2877e97de95d9344c13e56
2012-06-21 14:08:38 -07:00
Michael Jurka
2ecf995e0d Remove use of private ValueAnimator api
Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
2012-06-19 11:44:57 -07:00
Winson Chung
c10ba1396f Removing logging in AppsCustomizePagedView (Bug 6597629)
Change-Id: I58313d3b3536d3ee7eaae8459fbded41dc5dadec
2012-06-11 15:22:22 -07:00
Winson Chung
bfeac0681b Synchronizing on the new-apps list before modifying it. (Bug 6621553)
- Minor tweak to qsb padding
- Adding yet more logging for single-app-page issue

Change-Id: I4272dd7a70c9ac26f026b03a1f991f14844fdb9d
2012-06-06 15:57:27 -07:00
Winson Chung
7c7a22dc61 Adding logging to track issue with apps pages. (Bug 6549598)
Change-Id: Iaf8ad301325442346a2587f038b7a44578c16427
2012-06-01 13:47:37 -07:00
Michael Jurka
8bc26993d5 Merge "Solve stutter when swiping All Apps the first time" into jb-dev 2012-05-15 17:01:25 -07:00
Michael Jurka
5e368ffbad Solve stutter when swiping All Apps the first time
Bug: 6024062
Change-Id: I6e05e9916389b1d90bd59443a04720fbf2338f5e
2012-05-15 16:53:00 -07:00
Svetoslav Ganov
08055f6652 Adding accessibility scroll support to PagedView.
1. Added support for accessibility scroll action to
   PagedView.

2. Exposed AppsCustomizePagedView and Workspace for
   acessibility if otherwise specified.

bug:5932640

Change-Id: I812e7c285cbc4d925390b9fae48a18acc68432ce
2012-05-15 13:51:43 -07:00
Winson Chung
83d3b12ba6 Merge "Making the page spacing fixed in spring loaded mode. (Bug 6478409)" into jb-dev 2012-05-14 17:17:25 -07:00
Michael Jurka
920d7f433e Preventing drawing pages in Workspace if possible
Bug: 6427601

Change-Id: I259554557a5856aa17a532c656032c4d6d5826bd
2012-05-14 16:42:51 -07:00
Winson Chung
8aad610dc5 Making the page spacing fixed in spring loaded mode. (Bug 6478409)
Change-Id: I3577a1beecacb82528f0fde9439a8366a709b29c
2012-05-14 15:25:23 -07:00
Michael Jurka
bec653ea44 Merge "DO NOT MERGE Pass focusableMode when adding focusables from PagedView." into jb-dev 2012-05-07 17:35:07 -07:00
alanv
af51995758 DO NOT MERGE Pass focusableMode when adding focusables from PagedView.
Bug: 6421918
Change-Id: I9eb7c6fbb6654821642403f09baa5cb2536b5af4
2012-05-07 17:33:22 -07:00
Michael Jurka
869390b6ab Unify tablet/phone workspace scrolling behavior
Bug: 5954015
2012-05-06 18:44:16 -07:00
Winson Chung
a128a7b9e5 Fixing issue where last workspace page was offset when rotated. (Bug 6413570)
- Also adding check to prevent NPE in updating scroll indicator

Change-Id: If445be7fa00497bd21a4b9a6f9ebce93ceb30f2c
2012-04-30 15:23:53 -07:00
Winson Chung
360e63fd3e Moving side-page indicators to DragLayer to ensure it draws above hotseat gradient. (Bug 5117499)
Change-Id: Id0ab644f6631f4fd6be042b6be36ba8fe58eaae4
2012-04-27 13:48:51 -07:00
Michael Jurka
8b805b1715 Remove use of private APIs
Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
2012-04-25 16:24:03 -07:00
Michael Jurka
64c9ab3188 Removing dead code 2012-04-11 15:26:53 -07:00
Michael Jurka
b06d95fc79 Fix bug where overscroll never fully snapped back
Bug: 6085652
Bug: 6065523

Change-Id: Iaac5705e00e08882beba0cad7ee0d339de31444a
2012-04-03 04:23:05 -07:00
Michael Jurka
4ff7d79ddc Show side pages when exiting spring-loaded mode
Bug: 6132598
Change-Id: I2bf9025b7ac66d020522448b003905cb37c87587
2012-04-02 04:39:16 -07:00
Winson Chung
f0c6ae0e35 Adding animation post-installing a shortcut.
Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
2012-03-23 11:17:25 -07:00
Winson Chung
eecf02da58 Fixing some issues/regressions related to scaled icons.
- Fixes issue with folder icons being clipped in landscape in sw720dp (Bug: 6118397)
- Fixes issue with divider being in wrong orientation in sw720dp
- Fixes issue with scaled icons not being drawn with filtering
- Fixes issue with side pages showing under the hotseat when in landscape in phone UI
- Animates the drag view on pick up and drop

Change-Id: Iad26427ec63fcbc9bdb3b29a4645689ba445d5c8
2012-03-08 13:37:46 -08:00
Michael Jurka
47f747418e Improve code to determine which pages are visible
Change-Id: I2c349d987ddb5f399283088c128e6d4d056da4da
2012-03-02 13:45:03 -08:00
Winson Chung
867ca62c0e Fading out workspace when dragging to higlight dragged object.
Change-Id: I540ce145168a65a029d820d6c14a1e3070f8a5b0
2012-02-23 10:32:03 -08:00
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
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
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
1afedc379f Showing page indicator while dragging (Bug: 5117192)
Change-Id: I3c8180b2166f3961fbb9529c5de187b4b7b561cf
2012-01-24 13:19:55 -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
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