Commit Graph

12092 Commits

Author SHA1 Message Date
Joe Onorato
96da4012a1 We need to null out this static.
All of the crashes we've been seeing with "Calling RS with no
Context active" were in places that are guarded with if (mRollo != null).

Change-Id: Icb9194cfc4f534bedce5a69a20760a0c3d7fe1d3
2010-03-17 20:03:24 -07:00
Joe Onorato
8ddc4fdba0 Add a log message and some todos.
Change-Id: I948997d169d1833f2b61c620a02dbccae535e8de
2010-03-17 10:24:53 -07:00
Romain Guy
a28fd3fa7c Prevent NPE in Launcher when an icon cannot be found.
Bug #2509023

Change-Id: I053c7c9a37ed4aeb4d78a9f62dfdeea09a3959aa
2010-03-15 14:44:42 -07:00
Romain Guy
c16fea7161 Improve focus restore on orientation change.
Change-Id: If405c60f4a45aeb4079aa4dcd96b684fd6ea819c
2010-03-12 17:17:56 -08:00
Romain Guy
6a42cf3629 Fix focus and touch issues in 3D all apps.
Bug # 2506026

Change-Id: I95f21cc285c17dfa5f93daafa9d90a64042c7a9d
2010-03-12 16:03:52 -08:00
Joe Onorato
d8d22da5ca Bug 2509023 - NPE on upgrade to froyo
Change-Id: I07cb4f272948062b47da8826ca917fd74ad18404
2010-03-11 17:59:11 -08:00
Joe Onorato
c131b74922 Eliminate a race where old Launcher objects will continue to get callbacks for loading if they go
away before they're done.

Change-Id: Id9f57be482da428750285c86d95114d2652064e6
2010-03-11 15:45:05 -08:00
Jason Sams
dd8cd8b414 Unbind root script around load activities to prevent commands from being delayed due to swap buffers.
Change-Id: I9720fbe936d3cd336ca39235d0a1bba9e10d137a
2010-03-11 12:41:55 -08:00
Joe Onorato
e74daedc3b Fix 2507267 - stack overflow when adding shortcut
Change-Id: Ife5bea443debd481854693b3924e72a04fb66f97
2010-03-11 12:32:24 -08:00
Daniel Sandler
73a0554de1 Fix trackball focus weirdness in AllApps2D.
Also vertically align AllApps2D's home icon with Workspace's
grid icon.

Change-Id: I81a8759ed33afd08336482484f1b9bdb9a36718e
2010-03-11 09:00:51 -05:00
Romain Guy
13c2e7b788 Prevent ANR in Home when changing orientation.
Bug #2504556

This solves the issue by keeping the GL context, the RS context and
the RS scene around, across orientation changes.

Change-Id: I8e3dc6e6bf039087046d49d2826c8800c5bef582
2010-03-10 19:45:00 -08:00
Joe Onorato
56d8291af6 Apps on SD card don't confuse the launcher any more. They show up properly after reboots,
mounting and unmounting.

Change-Id: Icd861dcd8ac6401c597e2f9c8e2c66dff1cf9c61
2010-03-10 15:11:45 -08: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
Jason Sams
d1e2e1d6f4 Move mipmap level generation from allocation creation to upload time. This prevents RS from storing the >0 mipmap levels. 2010-03-05 15:19:00 -08:00
Kenny Root
7fc8227051 Merge "Widen AllApps3D text to match Launcher" 2010-03-05 13:43:30 -08:00
Kenny Root
9705164300 Widen AllApps3D text to match Launcher
The AllApps3D text used to have a bubble shade for the application
title to make it more visible over a translucent background of the
desktop.  This was later changed to a black background eliminating
the need for the bubble surrounding the text.  The majority of the
bubble rectangle code was commented out leaving all of the padding
still in effect. This caused application titles to wrap in varying
places between Launcher and Launcher2. Padding changes solve this.

Change-Id: Id67649562045f65b44409dfb81e6112a1f838143
2010-03-05 13:26:59 -08:00
Daniel Sandler
76c0e1408b Use the right package name to find wallpaper resources.
Bug: 2489120
Change-Id: I7efb122916edfb467c02969f29d845ebf29f74bf
2010-03-05 13:43:30 -05:00
Romain Guy
406d703fad Make touch events work in landscape. 2010-03-04 18:59:31 -08:00
Romain Guy
edcce099c9 Fix the build! 2010-03-04 13:03:17 -08:00
Romain Guy
2dc785dbde Merge "Prevent crash when a bad widget launches a non-existent config activity." 2010-03-04 12:52:16 -08:00
Romain Guy
8e633c5a3e Prevent crash when a bad widget launches a non-existent config activity. 2010-03-04 12:51:36 -08:00
Romain Guy
ce11585bb4 Make the Home on screen button work in landscape. 2010-03-04 12:15:37 -08:00
Romain Guy
cf8790483d Rename Launcher2's package to com.android.launcher.
This should fix data migration issues.
2010-03-04 12:01:40 -08:00
Romain Guy
060b5c88cc Implement landscape in 3D all apps.
Bug #2454737
Bug #2454736
2010-03-04 10:16:43 -08:00
Daniel Sandler
c351eb8b6a Hide the workspace when launching AllApps2D.
Boosts performance and squashes some weird focus issues.

(Also: fix builds with AllApps3D)

Change-Id: Id1c4628e119c950dced9d3383993674f3d6b9a1c
2010-03-03 15:11:52 -05:00
Daniel Sandler
388f679aa4 Introduce 2D All Apps and other support for sapphire-class devices.
AllAppsView is now the 2D, GridView-based version (very
similar to classic Launcher); AllApps3D is the
RenderScript/Rollo implementation.

TODO:
 - some mdpi assets are not in fact mdpi
 - related to above: static wallpapers not working yet
 - add dynamic selection of 2D/3D AA; currently you must
   choose one at build time by picking the appropriate class
   in all_apps.xml (see separate CL for sapphire overlay
   that does this)

Change-Id: I253d98404ea8a329a4049d2e48edd2e5129fa6ba
2010-03-03 14:38:45 -05:00
Joe Onorato
a5ecf71e57 am 2347b233: am 4700fed7: Maybe this will silence http://b/2460740
Merge commit '2347b2335b26edc5b7145759cc8a727fc712b970'

* commit '2347b2335b26edc5b7145759cc8a727fc712b970':
  Maybe this will silence http://b/2460740
2010-03-01 18:34:15 -08:00
Joe Onorato
4700fed72b Maybe this will silence http://b/2460740 2010-03-01 15:26:36 -08:00
Dianne Hackborn
094fc7ac6d Update to reflect android-common no longer in framework. 2010-02-24 20:01:46 -08:00
Romain Guy
fb5411e982 Correctly position the quick contact badge when opened from a folder.
Bug #2467438
2010-02-24 10:04:17 -08:00
Joe Onorato
983e5f2cd3 am 96ef9f68: am bf5350db: fix 2460740 com.android.launcher2: java.lang.NullPointerException at com.android.launcher2.AllAppsView.saveAppsList(AllAppsView.java:1270)
Merge commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31'

* commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31':
  fix 2460740 com.android.launcher2: java.lang.NullPointerException at
2010-02-22 15:07:16 -08:00
Joe Onorato
bf5350db61 fix 2460740 com.android.launcher2: java.lang.NullPointerException at
com.android.launcher2.AllAppsView$RolloRS.saveAppsList(AllAppsView.java:1270)
2010-02-22 14:46:10 -08:00
Joe Onorato
deb98afe40 minor refactor: This function is only called from one place. It doesn't need the parameters. 2010-02-19 15:00:12 -08:00
Joe Onorato
3c24aca5f5 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:34:55 -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
Wink Saville
75dc3a9d28 DO NOT MERGE; Add back support for uts testing. 2010-02-19 09:05:23 -08:00
Bjorn Bringert
3a928e46bd Fix silent DB upgrade abort
normalizeIcons() was missing a call to setTransactionSuccessful(),
which made the entire DB upgrade silently rollback. So the
DB version was stuck at 6 after an upgrade from Eclair to Froyo.
The only visible effect in the default config was that the search
widget disappeared.

Fixes http://b/issue?id=2451146

Change-Id: I257964e5958286e9819bb5e7b108a261cfabf9b3
2010-02-19 11:15:40 +00:00
Joe Onorato
75fd1ec46d DO NOT MERGE - Use the froyo launcher2 in mr3, except for a few unbundling things that can't be merged back. 2010-02-18 17:09:55 -08:00
Joe Onorato
346e129456 Fix a crash on launcher db upgrade. 2010-02-18 10:34:24 -05:00
Romain Guy
df3080e865 Merge "Correctly recenter the wallpaper when going back to default screen." 2010-02-17 15:24:26 -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
339cdd9816 fix 2411389 - calling RS with no Context
This thing where the context sometimes works and sometimes doesn't is starting to piss me off.  We
really need to have RenderScriptActivity that deals with the lifecycle for you...
2010-02-17 14:08:32 -05:00
Joe Onorato
f0dde0927b Don't do the haptic feedback on workspace items when they're not being picked up.
related to bug 2309687
2010-02-16 18:25:23 -05: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
52fbb3cd46 Revert "Merge "Launcher changes to handle UTS test mode." into eclair"
This reverts commit b8fc9e7df6, reversing
changes made to 52ba5b08f2.
2010-02-13 11:23:10 -05:00
Jeff Hamilton
eaf77d6c3d Fix some broken SQL that causes a crash at boot.
Change-Id: I74e7f95b87eb427ad2c44d4197111ed18630e042
2010-02-13 00:08:17 -06:00
Wink Saville
7ac5037acc am c4470606: am b8fc9e7d: Merge "Launcher changes to handle UTS test mode." into eclair
Merge commit 'c44706064341f02a14d61091492a5fc6dc6efd2d'

* commit 'c44706064341f02a14d61091492a5fc6dc6efd2d':
  Launcher changes to handle UTS test mode.
2010-02-12 16:02:32 -08:00