Commit Graph

16456 Commits

Author SHA1 Message Date
Joe Onorato 7018d8e327 Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch.
Somebody fixed a bug in managed dialogs where it wouldn't
create the dialog after a configuration change.  This means that we
shouldn't set mWaitingForResult in createDialog, we need to set it in
onShow.  This is what the add dialog was already doing.

Change-Id: I955c2f7cd4a47213f84986ec9ba251146b1ac423
2010-04-13 20:29:42 -07:00
Joe Onorato ac03330c96 Fix 2583234 - It's ok for mCallbacks to be null.
Change-Id: Iec8df7b668a4657677f9c5421d00aa1b7df91015
2010-04-13 17:19:18 -07:00
Adam Powell a588b878b9 Revised workspace fling physics
Change-Id: Ia14ff132e49390bf3bc4ac6ebf1b3eded8d39caf
2010-04-13 12:40:24 -07:00
Romain Guy 3af600182f Last minute hack to deliver touch events to widget in landscape mode.
Bug #2562729

In landscape, the left and right dots buttons are 93dip wide; this makes them overlap
with widgets at the bottom of the screen. The dots do not need to be that wide but
we chose this size to make it easier to tap them in portrait. To avoid issues in
landscape, this change introduces a new type of ImageView that can ignore touch
events in a certain zone. This was easier and cheaper than re-cutting 36+ assets.

Change-Id: Id261fba41a43dede943e72060e39e87658e4b0df
2010-04-05 18:39: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 f984e853f2 fix 2542590 add more logging when launching app fails
Change-Id: I5a1fa261c6e67eb7afb661de39e35ce43e2caa59
2010-03-25 09:47:45 -07:00
Romain Guy 509cd6a656 Correctly upgrade from MR3 to FroYo.
Bug #2530137

Change-Id: I9ab59fd53e17a1f51f60a8cb98dcb19a7957ffc6
2010-03-23 15:10:56 -07:00
Joe Onorato 9690b396d5 fix 2533780 database cursors/statements is not closed in LauncherProvider.java
Change-Id: Iaf8ca76a15b153a1154b106247f81a0213183bcb
2010-03-23 17:34:37 -04:00
Joe Onorato da6759fba8 Merge "Fix 2519335 - Caused by NPE. Here's another place where it needs to be ok for sRS to be null." 2010-03-23 14:04:42 -07:00
Romain Guy 693599f27b Support old-package attribute for default workspace items.
Bug #2509293

Change-Id: I5e76465bceab6b733287f53f6afdcf3d522843fc
2010-03-23 10:58:18 -07:00
Joe Onorato c5210eb384 Fix 2519335 - Caused by NPE. Here's another place where it needs to be ok for sRS to be null.
Change-Id: Iacfc0474c96c657d982a50c8d4851e2fdd79c3ae
2010-03-23 11:26:28 -04:00
Joe Onorato 878f086f75 Fix 2532504 - fix NPE in AllApps3D.onKeyDown.
Change-Id: I8fba9b0b5217d630d84a6a260865d454db2bb046
2010-03-22 12:22:22 -04:00
Joe Onorato cfc4c7b402 fix 2430251 - all apps touch targets misaligned.
Change-Id: I091b152c328a2664ce68c9790117e6e698bd677a
2010-03-18 15:15:10 -07:00
Joe Onorato 2cc62e82b4 Rename these static variables.
Change-Id: Ic16dcbeb5b0c8afface65a995ea501e155ba69ff
2010-03-17 20:23:53 -07:00
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