Commit Graph

16456 Commits

Author SHA1 Message Date
Michael Jurka df96add095 Fix crash in draw listener
Bug: 8528246

Change-Id: Ie3600bed58dc393fcf71f735213a32b51551b52d
2013-04-03 16:46:07 -07:00
Winson Chung 25460a1d5c Fixing issue where drag view is jumping when you scroll from hovering over an edge. (Bug 8522679)
Change-Id: Ie523e718bd1b558db9608aa66f6c353e4b8e1a14
2013-04-01 18:21:28 -07:00
Winson Chung fe1fe268b6 Fixing RTL issues with apps ordering and snapping to page. (Bug 8238938, Bug 8374016, Bug 8373578)
Change-Id: I57ff58a6202a2794f02cfc13ed6124b10256dbbf
2013-04-01 17:07:39 -07:00
Michael Jurka e233a8bf79 Hide clings in child mode
Bug: 8349525

Change-Id: Ie92153e77f1714b88986813a689a4fa7e444d1dc
2013-03-29 15:45:49 -07:00
Michael Jurka 98720c96ee Fix crash caused by unregistering animation listener 2013-03-28 13:39:35 -07:00
Michael Jurka f1ad608c28 Fix jumps in the beginning of animations
If the first draw frame of an animation is
expensive, which it often is, it causes a big
jump. Added a helper class which automatically
adjusts the animation start time if the first
frame is more than 16ms.

Change-Id: I100edbc41c2abe930a32d6bcf0a782ea9735f7f9
2013-03-28 12:08:18 -07:00
Michael Jurka b8f5c401de Don't close widget preview cache db
Only one connection is ever held now, and that
will be closed when the app is killed
2013-03-20 12:53:01 +01:00
Michael Jurka d9cb4a124a Fix SQLite crashes in Launcher
We were using multiple SQLiteOpenHelpers, which
causes problems; this change switches us to using
only one

Bug: 8346109

Change-Id: If7d4dff3d34edb38d9586d3b0f4e8e1747a71a75
2013-03-20 10:25:02 +01:00
Michael Jurka 315d38e977 Improve All Apps --> Workspace performance
Fix bug where HW layers were not enabled for that
transition

Bug: 8323765
2013-03-07 13:33:31 +01:00
Romain Guy 308703c41f Merge "Prevent CellLayouts from making calls to saveLayerAlpha()" into jb-mr2-dev 2013-03-07 02:43:46 +00:00
Romain Guy 388e8c5dbe Prevent CellLayouts from making calls to saveLayerAlpha()
Change-Id: I6fe1d9b39a765f4a960f7940c7afc94c784efa16
2013-03-06 15:31:40 -08:00
Michael Jurka e5919c5574 Fix bug with some 1x1 widget previews
Bug: 8310045
2013-03-06 17:37:06 +01:00
Romain Guy ce3cbd145b Disable clipping where unnecessary
This change prevents the renderer from using a stencil buffer
to render rotated CellLayouts.

Change-Id: I0414f59ed45502323ab588820ceb4a5e3ec17140
2013-02-25 15:42:16 -08:00
Michael Jurka 5140cfaf47 Fix rare NPE
Bug: 8191673
2013-02-15 14:50:15 +01:00
Michael Jurka 32b7a09733 Fix SQLite syntax error 2013-02-07 20:08:41 +01:00
Michael Jurka c4deb99929 Merge "Fix crash when creating preview cache table" 2013-02-07 14:58:59 +00:00
Michael Jurka f0d45bdac8 Fix crash when creating preview cache table 2013-02-07 14:37:41 +01:00
Michael Jurka ee8e99fe3b Fix crash when switching between Apps/Widgets tabs
Bug: 8138894
2013-02-07 13:27:30 +01:00
Fabrice Di Meglio b81e22ef4a Merge "Fix Launcher drop targets for App remove / uninstall / info" 2013-02-07 00:41:18 +00:00
Fabrice Di Meglio d6a33c6f34 Fix Launcher drop targets for App remove / uninstall / info
- make the code aware of the layout direction
- use start drawables
- fix animation drop rect

Change-Id: I35f01b9079aef418c0a22b39e32344c7bf5a0660
2013-02-06 15:40:46 -08:00
Michael Jurka e4b4cd7a87 Merge "Clean up database in WidgetPreviewLoader" 2013-02-06 13:34:32 +00:00
Michael Jurka d9ba96aab4 Merge "Fix crash caused by double loading of widget previews" 2013-02-06 13:33:57 +00:00
Michael Jurka 0247d1418d Clean up database in WidgetPreviewLoader 2013-02-06 14:30:25 +01:00
Michael Jurka 3c69decd81 Fix crash caused by double loading of widget previews
Bug: 8146408
2013-02-06 13:59:10 +01:00
Winson Chung 728bd270e9 Merge "Adding RTL paging." 2013-02-06 00:17:13 +00:00
Michael Jurka 3f4e070aa5 Fix crash when rotating all apps
Bug: 8134296
2013-02-05 11:25:29 +01:00
Winson Chung 52aee60edc Adding RTL paging.
Change-Id: Ic27d499cb76c7c30da37ed93f5372dd8441118b7
2013-02-04 16:35:52 -08:00
Michael Jurka 05713af127 Cache widget previews in a DB
- Smoother All Apps scroll performance

Change-Id: Id2d31a45e71c63d05a46f580667ad94403730616
2013-02-04 20:32:49 +01:00
Fabrice Di Meglio 892d023c54 Merge "Add first RTL support to Launcher" 2013-01-24 21:50:23 +00:00
Fabrice Di Meglio cc11f74258 Add first RTL support to Launcher
See bug #8064062 Launcher needs to be RTL aware

Change-Id: I24b1f1977fb65246afd2005440567b5850939621
2013-01-23 18:23:06 -08:00
Michael Jurka 47639b9c1d Use less HW layers in All Apps
(saves memory)

Change-Id: Ib2beda7549662a787437c7aa043e7858357c051f
2013-01-17 10:38:15 +01:00
Winson Chung 7819abd2d1 Fixing issue where the cling is offset. (Bug 7633074)
- Also fixing issue where the workspace cling was showing on top of AllApps when you entered it for the first time.

Change-Id: I7d59ad153de192bc1d69537af1b4af632465138b
2012-11-29 14:30:30 -08:00
Winson Chung 1ef2123ccd Fixing NPE in updateCurrentPageScroll (Bug 7465970)
Change-Id: I71d2b01518f3f736f6787ff6a503271b9ea7b04b
2012-11-26 14:44:43 -08:00
Michael Jurka ce552e9196 Merge "Fix janky transition on All Apps tab switch" into jb-mr1.1-dev 2012-11-21 11:53:38 -08:00
Michael Jurka 7f9ddd8435 Fix janky transition on All Apps tab switch
Bug: 7139562
2012-11-19 16:15:24 -08:00
Adam Cohen 2ee5fe77db Merge "Refactoring push reordering (issue 7139335)" into jb-mr1.1-dev 2012-11-19 15:49:23 -08:00
Adam Cohen f3900c287c Refactoring push reordering (issue 7139335)
-> This new approach is actually correct in emulating cascaded  pushing of
   items left, right, up and down.
-> Takes care of a couple crashes and some instances where reordering
   was not doing the right thing.

Change-Id: I016120e62f5d6fa1a2a6289c3badcb6ec230b2a3
2012-11-19 15:42:32 -08:00
Michael Jurka 0a457bfbd9 Fix StrictMode violation
Switching how we set a property to tell launcher
to force rotation to be enabled, or to dump state.

Bug: 7538629

Change-Id: I8cb55f1a28ba59fe5d410562c66bc86eb9efabfe
2012-11-19 15:21:11 -08:00
Michael Jurka ffc2682a97 Fix NPE
Bug: 7441452
2012-11-16 18:21:22 -08:00
Craig Mautner 360310b74d Extend background to full screen.
Gradient and black backgrounds were stopping at the Status Bar.
When returning from a full screen app to the launcher the wallpaper
was completely visible when it should have been obscured by these
backgrounds. Making the app full screen while keeping the views
within the system insets fixes this.

Bug 7410717 fixed.

Change-Id: If3f7e4808961ee6c80fe2d0a328e6ca39fa5eb7a
2012-11-16 16:17:20 -08:00
Michael Jurka 3c42e118c4 Merge "Cleaning up unused code" into jb-mr1.1-dev 2012-11-16 13:10:49 -08:00
Michael Jurka 3c1681d5f7 Cleaning up unused code 2012-11-15 14:11:41 -08:00
Michael Jurka 9df38dff2d Updating wallpaper picker icon to higher res
Bug: 7400295
Change-Id: I2c7625ee1ce09ded57d884c229f155ebcf39be07
2012-11-13 15:55:50 -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
Dave Burke e57e793bbd Merge "Cap launcher swipe animations to max duration" into jb-mr1-dev 2012-10-25 17:19:09 -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
Dave Burke 8634f8494a Merge "Delay ACTION_MAIN processing when not focused." into jb-mr1-dev 2012-10-25 13:10:56 -07:00
Jamie Gennis cb222e85d2 Delay ACTION_MAIN processing when not focused.
This change puts a 350 ms delay before processing the ACTION_MAIN intent when
the window is not focused.  This makes the Launcher animation take place after
the GPU-intensive portion of the window shade hide animation, resulting in
smoother animations.

Bug: 7401764
Change-Id: I574f2ba398fcf38b423413f802673bbd4d983cd2
2012-10-24 14:27:45 -07:00
Michael Jurka 9dc882be0f Merge "Get rid of explicit GC requests" into jb-mr1-dev 2012-10-22 17:08:16 -07:00