Commit Graph

65 Commits

Author SHA1 Message Date
Daniel Sandler
291ad12232 Ignore requests to add items to non-existant screens.
Should avoid crashes when using Launcher2 alongside
third-party launchers that add additional workspaces.

Bug: 2709532
Change-Id: I7775b43e582346ba686524e357a2b262e9fc4dcd
2010-05-25 10:35:44 -04:00
Daniel Sandler
e1cc6c3745 Fix 2617318 - NPE in Launcher2.
Applies the fix in change Id91712fa to widgets.

Bug: 2617318
Change-Id: I1e1dac6238a26497eacc23b161df171ae40bb588
2010-05-07 11:49:29 -04:00
Adam Powell
fe8e279dbc Bug 2639807 - Add smarter smoothing to home screen touch scrolling.
Change-Id: I242e11f5aec218ae2b8f80ef3babcb2836c173db
2010-05-04 14:20:28 -07:00
Adam Powell
fefa0ce22a Fix bug 2646531 - regression in home screen bitmap caching
Looks like the code path for buildDrawingCache(false) has some bugs.
This reverts to the old code path and tries to manage the creation of
those caches a bit better.

Change-Id: Ic468e9db396c51f723454dc3832e0cd1c0c82004
2010-05-03 10:23:50 -07:00
Adam Powell
fea5d02507 Filter input events and smooth out touch scrolling. Bug 2639807
Change-Id: I71a18497862a30db5ff0f52f566fb86eae213ea3
2010-04-29 16:46:03 -07:00
Adam Powell
d40613a693 Address bug 2631580 - Tweak home screen scrolling behavior.
Duration of motion is now influenced by fling velocity. Constants have
been tuned and tweaked.

Fix a couple of drawing optimizations in Launcher2 Workspace.

Change-Id: Iaa674d10a28554884d9cc98134b2d1253b5e3e70
2010-04-26 19:43:53 -07:00
Adam Powell
2762dd856e Fix bug 2629457 - Scale home screen settle animation based on distance.
This fixes the issue where using the long-press-on-dots feature to
jump to a specific home screen overshoots by a large distance. It also
speeds up the resulting animation such that jumping from screen 1 to 5
doesn't take as long.

Change-Id: If41086b17df875be5514776e3af24292587d05a7
2010-04-26 12:44:27 -07:00
Adam Powell
495f289228 Change workspace scroller interpolator
Change-Id: I1d8f1ceb39dc21e58c833cf030a41d08913ef7e3
2010-04-16 16:40:55 -07:00
Joe Onorato
f11079b11e Fix 2595902 - NPE in launcher2
This code never worked.  If you delete a live folder for an app that's been uninstalled, it would
crash.

Change-Id: Id91712fada8912addbc4892bd5ae517536fc4f24
2010-04-15 11:51:20 -07:00
Adam Powell
a588b878b9 Revised workspace fling physics
Change-Id: Ia14ff132e49390bf3bc4ac6ebf1b3eded8d39caf
2010-04-13 12:40:24 -07:00
Adam Powell
327a9a3a30 Limit workspace flings to one screen at a time.
This prevents users from scrolling left slightly, flinging right,
and scrolling by two screens as a result (and vice versa).

Change-Id: I04c60438c022b24defcd8e4cbedf1c6b07c24423
2010-04-02 10:41:38 -07:00
Joe Onorato
64e6be78dc Refactor the app updates so that it doesn't rely on the package name.
This will be needed for the upcoming change to update the icons with the
grayed out when the SD card goes away.
2010-03-10 13:42:32 -08:00
Adam Powell
c36f2455ab Cancel long press within normal touch slop, before paging touch slop.
Change-Id: I1b4d02db306bc0a7c3f39e2174a7239239ce4422
2010-03-10 11:08:17 -08:00
Adam Powell
3499d4aac4 Smoother scrolling/paging, multiple pointer support
Change-Id: I09eef7b0b4d85ab073307f2fb5eb2521aef82af4
2010-03-10 10:16:21 -08:00
Romain Guy
edcce099c9 Fix the build! 2010-03-04 13:03:17 -08:00
Joe Onorato
e48e7c1a62 Don't crash when adding a shortcut.
Steps to reproduce: Menu > Add > Shortcut > Application > [any app]

E/AndroidRuntime( 1734): Caused by: java.lang.ClassCastException: com.android.launcher2.ShortcutInfo
E/AndroidRuntime( 1734):    at com.android.launcher2.Workspace.onDropExternal(Workspace.java:963)
E/AndroidRuntime( 1734):    at
com.android.launcher2.Workspace.addApplicationShortcut(Workspace.java:903)
E/AndroidRuntime( 1734):    at
com.android.launcher2.Launcher.completeAddApplication(Launcher.java:669)
E/AndroidRuntime( 1734):    at com.android.launcher2.Launcher.onActivityResult(Launcher.java:371)
E/AndroidRuntime( 1734):    at android.app.Activity.dispatchActivityResult(Activity.java:3877)
E/AndroidRuntime( 1734):    at android.app.ActivityThread.deliverResults(ActivityThread.java:3340)
2010-02-19 13:10:40 -08:00
Joe Onorato
956091ba78 fix 2453680 - acore NPE on startup: setWallpaperPosition 2010-02-19 12:50:06 -08:00
Romain Guy
ed2390e709 Correctly recenter the wallpaper when going back to default screen. 2010-02-18 00:22:58 +01:00
Joe Onorato
59d5245b0f Fix 2446779 Launcher2 crash - while adding short cut to home from all apps drawer 2010-02-16 15:55:38 -05:00
Joe Onorato
0589f0f66c Split ApplicationInfo into ApplicationInfo which is used for AllAppsView and ShortcutInfo which is
used for the workspace.

Consolidate the three icon resampling functions into one.

Ensure that the icons stored in LauncherProvider are the right size, so we don't have to resample
them each time we load them.
2010-02-12 12:18:40 -05:00
Romain Guy
483543f31c Update the position markers when going back to Home. 2010-01-28 14:06:31 -08:00
Romain Guy
06762ab54d Convert the tap and drop live wallpaper commands coordinates to screen space. 2010-01-25 16:51:08 -08:00
Romain Guy
629de3ef73 Remove widgets when the corresponding apk is uninstalled.
Bug #2298872
2010-01-13 12:20:59 -08:00
Romain Guy
5c16f3ecd6 Remove LiveFolders when corresponding package is uninstalled.
Bug #2298872
2010-01-12 17:24:58 -08:00
Joe Onorato
c45b168629 Fix 2325492 - No icons in launcher after pressing home from within an app
It looks like the evil hack in 14f122bf84 to make the workspace
not animate didn't completely work.  The key to reproducing this bug is to make sure the
activity is destroyed and to have last gone to an app from a screen other than the center
screen, because that causes it to get reloaded from the icicle, which makes the timing
more amenable to missing the animation, because the view isn't attached yet.
2010-01-11 18:48:40 -05:00
Bjorn Bringert
7984c9496b Get rid of the built-in search widget in Launcher2
Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
2009-12-09 21:48:38 +00:00
Joe Onorato
546917a5ad am a276fc59: Fix 2306862 - Launcher2 crashed: in libs/rs. Uploading texture without a context.
Merge commit 'a276fc59f535a2fb05701e8f49bb7adf4cefb3b2' into eclair-mr2

* commit 'a276fc59f535a2fb05701e8f49bb7adf4cefb3b2':
  Fix 2306862 - Launcher2 crashed: in libs/rs.  Uploading texture without a context.
2009-12-08 17:19:08 -08:00
Joe Onorato
a276fc59f5 Fix 2306862 - Launcher2 crashed: in libs/rs. Uploading texture without a context.
turns off some logging and fixes latent bugs that this uncovered where we were
accessing renderscript while there was no context.
2009-12-08 17:02:02 -08:00
Romain Guy
f8e6a80acd Let the user click the dots during a scroll on Home.
This allows faster scroll across Home. Also remove dead code.
2009-12-07 18:01:15 -08:00
Joe Onorato
14f122bf84 Fix bug 2271894 - Odd animation when press home button from app that wasn't in center home screen
Now:
 - When you're on the workspace and you press home, it animates back to the middle
 - When you're in all apps and you press home, all apps animates out and the workspace
   doesn't animate to the middle (it just jumps there)
 - When you're in an app and you press home, it doesn't animate to the middle
 - When you're in an app and you press back, it still goes to the page you were on.

Don't look at the evil hack to make it move without animating.
2009-11-19 14:06:36 -08:00
Joe Onorato
0d44e9482b Fix bug 2261637 - Workspace previews home screens on long pressing
at the bottom of app drawer

This includes some contortions to get it not to perform the vibrate
haptic feedback then.

(By the way, it appears that we're vibrating on the add context menu
long press, so also do it when when we show the previews.
2009-11-16 18:20:51 -08:00
Joe Onorato
464c055a7a Bug 2244530 - Disable the attempt at not flickering. It's interfering with the frame rate while rollo animates in. 2009-11-12 18:19:47 -08:00
Joe Onorato
68ba5ca5d7 Keep banging on the launcher locks up bug. This moves the
delayed zoom stuff into one place, so it should be out of
sync less.
2009-11-12 14:23:43 -08:00
Romain Guy
e47f55c30b Improve desktop scrolling from the previews switcher.
Change-Id: Iee05120b4363c07294f665f45f561e9d9361ccaa
2009-11-11 19:21:22 -08:00
Joe Onorato
a30ce8e6b2 Bug 2231692 - Turn off launcher2 logging. 2009-11-11 09:24:37 -08:00
Joe Onorato
3a8820bdba Fix bug 2250457 - Open folder on home screen changes changes the behaviour of the home button
Now, home always goes to the center worksapce screen and back from an
app goes to all apps if it was open.

Getting that animations smooth took a little bit of work.
2009-11-10 19:56:02 -08:00
Marco Nelissen
c07c79b10b Update Launcher2 to the new wallpaper API 2009-11-09 19:35:07 -08:00
Romain Guy
8a73c51ee8 New position indicators and icons for Launcher2.
Change-Id: Id444943a3cc2e9db78733614141cbe2be837fdbf
2009-11-09 19:19:59 -08:00
Mike Cleron
3a2b3f2be5 If 3 screens are good 5 will be better 2009-11-05 17:17:50 -08:00
Romain Guy
84f296c106 Add android.home.drop even for the live wallpapers.
Change-Id: I44ad9fe573dc3d2e5d091fed01300d44b6be9473
2009-11-04 15:00:44 -08:00
Joe Onorato
080d9b614e Adjust logging of launcher2 launch times, and make all apps loading wait a little longer,
even though usually it happens later anyway.

For bug 2226555.
2009-11-02 12:01:11 -05:00
Mike Cleron
f8bbd34d7d Make home send tap commands to live wallpaper.
(This only applies to taps on empty spaces)
2009-10-23 16:15:16 -07:00
Joe Onorato
2bc6b7c2b8 Fix the bug where you can grab the workspace while all apps is animating.
You can still grab it, but now once all apps is up, it returns to where it belongs.
2009-10-01 14:08:30 -07:00
Romain Guy
207e40ee66 Prevent crash when dropping an icon.
Change-Id: Ia7313db2437a094c11286edeeaae7b3121a873eb
2009-09-29 16:19:19 -07:00
Joe Onorato
7bb1749c69 work around and fix bugs
- Make rollo always draw.  This works around the bug somewhere that makes
  it show gray when all apps shold be closed
- Simplify the SwipeController now that we're not zooming the workspace.
- Make the readback data sane by splitting it to a different allocation.
  Now there is one allocation for each direction of data flow.
- Make AllAppsView.isVisible return the correct value.
2009-09-25 09:17:07 -07:00
Joe Onorato
33ed7b2f5a Fix some crashes in launcher2.
http://b/issue?id=2142064
2009-09-23 18:20:54 -07:00
Joe Onorato
678862186a Get drag and drop working again. 2009-09-14 19:05:05 -04:00
Joe Onorato
a9c28f6f97 New trash icon. 2009-09-14 18:39:04 -04:00
Joe Onorato
fb0ca67aea checkpoint 3d all apps entrance / exit animations 2009-09-14 17:55:46 -04:00
Romain Guy
52d9cb3260 Fix a drag and drop issue: if a drop happened too quickly it could go to the wrong screen.
Change-Id: I00c73e81e754766cdc47a6286e2b969fcf10aa7c
2009-09-11 17:30:44 -07:00