Commit Graph

503 Commits

Author SHA1 Message Date
Winson Chung a2413751e3 Adding delay upon user interaction to prevent the new-app animation from taking over your phone. (Bug 6248609)
- Fixing issue where we might have been reading the db items while handling previous broadcast and adding db items to invalid positions
- Making items add alternating from the center page (as opposed to the current page)
- Re-adding the strict-mode fix (really requires 1. to be true)
- Adding flag for enabling strict mode exceptions
- Removing items from the new apps add list on uninstall-shortcut broadcast

Change-Id: I495e80bf5f8dbb4b87dd709460937d6f2a1e05e7
2012-04-09 17:04:00 -07:00
Michael Jurka 27614d22a1 Fix issue where workspace was not shown after screen off/on
Bug: 6239609
Change-Id: I1dd3d0d4e4a37b06210e9aec5b4676157fb8b6ed
2012-04-02 06:44:47 -07:00
Winson Chung 4f916f4b35 Adding extra logging to try and catch cases where Market button does not work.
Change-Id: I09fde1daf3afc1921ad1cc48358ee6c55df4ab7a
2012-03-27 16:22:57 -07:00
Winson Chung 93eef082ec Making the text reflect the container when you are unable to drop onto a space.
Change-Id: Ib3734b7f7767bdf0fb4c95dcc1298da02c04e9cd
2012-03-26 10:55:49 -07:00
Winson Chung f0c6ae0e35 Adding animation post-installing a shortcut.
Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
2012-03-23 11:17:25 -07:00
Adam Cohen 482ed823af Initial implementation of CellLayout auto-reordering
Change-Id: Id5b5080e846907a7d9cd6535f6e7285e83a0ff71
2012-03-15 13:48:12 -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
Dianne Hackborn 4f560cec93 Don't do equal comparison with trim memory level.
It is possible for the app to get different values, for example
if memory is already low then it will immediately go to one of
the low memory levels when the app goes in the background.

Change-Id: I6522cb0385748d926ea7868eacaf588790672f1b
2012-03-06 19:07:47 -08:00
Andrew Flynn 826a661d5b resolved conflicts for merge of a3e22d6a to master
Change-Id: I8770574acf86e280a9d15d4309686111260e09d9
2012-03-01 16:26:50 -08:00
Andrew Flynn 0dca1ec414 New small/large screen division for Launcher.
Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).

Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
2012-02-29 17:30:37 -08:00
Adam Cohen ca83eeb091 Fix bug where widget min spans weren't being loaded on workspace bind
Change-Id: I984c3e226ae1c602a6b1dd366241e7f2d093f2a4
2012-02-29 15:18:40 -08:00
Adam Cohen d41fbf5680 When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it
   in its current (or default) size, but can be scaled down to fit
   a certain area, it will be resized to fit the available space
-> The resizing is animated using a crossfade and scale between
   the original dragView and the widget rendered in the final size

Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
2012-02-27 17:30:32 -08:00
Winson Chung aeae56bf12 Prevent build break.
Change-Id: Id4413263c3b2c0b470b78dc4936714353cd849dd
2012-02-24 15:47:37 -08:00
Michael Jurka 5f1c44ab0d Merge "Delaying building of hardware layers when Launcher is resumed" 2012-02-24 15:39:52 -08:00
Michael Jurka 6ee21d28fa Delaying building of hardware layers when Launcher is resumed 2012-02-24 13:39:21 -08:00
Winson Chung 9b0b2fefb2 Fixing issue where icons can't be clicked during launcher transition.
- Also tweaking the workspace fade in/out interpolators

Change-Id: I65d1aefbead13f662c84a2f1178c73615153fd5a
2012-02-24 13:04:26 -08:00
Winson Chung 46569ae107 Merge "Allow touches to fall through AllApps nearing end of transition (Bug: 5991846, 6016062, 5991846)" 2012-02-17 15:10:12 -08:00
Winson Chung 7044272f18 Allow touches to fall through AllApps nearing end of transition (Bug: 5991846, 6016062, 5991846)
- Also updating mTransitionProgress so control when drops succeed

Change-Id: I2f672c64f0a87249dcf7d254f963b8b2710c849f
2012-02-17 11:14:29 -08:00
Winson Chung 46353de2ab Updating shared preferences on background thread to prevent StrictMode violations when dismissing clings (Bug 5972880)
Change-Id: I56703e0237d54029fafbb04730ab126637762f13
2012-02-16 14:05:54 -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
Dianne Hackborn 98b69dc64f Part of fixing issue #6006757: Keyboard dismissal lags
Have launcher delay a little before rebuilding its layers, to give
the input system time to do the communication it needs with it before
blocked on that work.

Change-Id: Ib6f533a51c611b8c971c9ca2a1da8d53c8952b44
2012-02-15 18:29:29 -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
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
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 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 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 df871fe8d9 Merge "Cleaning up animation code" 2012-01-17 12:07:24 -08:00
Michael Jurka 86868057c2 Merge "Removing dead code" 2012-01-17 10:57:09 -08:00
Michael Jurka 159b4cc1e4 Cleaning up animation code
- replacing ValueAnimators with ObjectAnimators
- using ViewPropertyAnimator for All Apps->Workspace transition
- add multiple listener support to LauncherViewPropertyAnimator

Change-Id: I794dab6138fb23c5be963e2eb562965b5de857cf
2012-01-17 03:13:53 -08:00
Michael Jurka 4d59649ad1 Removing dead code
Change-Id: I712144b0beb81387efd4c4b59087594e9832d116
2012-01-16 06:43:49 -08:00
Michael Jurka 49779a155f Fix RuntimeException in LauncherViewPropertyAnimator
Bug #5869237

Change-Id: Ib1466ea7aaabc1c42626789d7c8ef48134b49bfd
2012-01-16 04:10:08 -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 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 90f53da680 am b4848296: am c00f0b99: No longer using fastInvalidate() pattern for half of AllApps transition
* commit 'b4848296880a351b40b1f01a0bb675e7e9c6ee52':
  No longer using fastInvalidate() pattern for half of AllApps transition
2011-12-06 23:11:55 -08:00
Adam Cohen c00f0b9967 No longer using fastInvalidate() pattern for half of AllApps transition
Turns out this was likely causing the hardware layer to be redrawn and hence
an anti-optimization

Change-Id: Ib98beebec6efed339eb9f918c24579af529e028e
2011-12-06 19:54:37 -08:00
Adam Cohen 23a4d305ab Adding system property to force enable launcher rotation
Change-Id: If855a84a37716b86a84bf571c15c5ee715ff1845
2011-12-01 17:26:44 -08:00
Michael Jurka 05bf644e37 Fix memory leak in Launcher
Leak happened when a stack view was on the
workspace and then workspace forced a rebind of
its items (for example, when an app was installed)

Bug # 5629171
2011-11-30 20:30:17 -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 97d6f9a705 Merge "Fixing an issue where qsb press states could be out of sync. (Bug 5627327)" into ics-mr1 2011-11-23 15:38:34 -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
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 d919882006 Prevent the creation of Shorcuts with null intents (issue 5629292)
Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
2011-11-22 16:51:26 -08:00
Winson Chung bb185bdd57 Fixing an issue where qsb press states could be out of sync. (Bug 5627327)
- Adding haptic feedback to qsb button clicks (Bug 5652304)

Change-Id: I93d7c7a737f167d7ddf2b426d87e3a062feccac3
2011-11-21 12:35:41 -08:00
Winson Chung d016015c23 Enabling clings for tablets (Bug 5506377)
Change-Id: Id0cdc7e2a101788f790340cd5acf6abb33419de6
2011-11-18 11:43:44 -08:00
Michael Jurka b737ee6ab2 speeding up transition from other apps -> Launcher 2011-11-15 16:36:30 -08:00
Michael Jurka 1899a36ab3 Delay loading All Apps pages until the first time we enter All Apps, making launcher startup faster (5000628)
Change-Id: I2a2218975141d7659184de83e505c7ab6e613232
2011-11-13 17:08:23 -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 81efbad05e Reduce unnecessary layout passes
- Also delete unused code
2011-11-10 11:22:48 -08:00