Commit Graph

4413 Commits

Author SHA1 Message Date
Joe Onorato effc4a8aef Paper over bug 2592956 - Home not redrawing the shortcuts, widgets, or background.
The mNext* stuff in AllApps3D got reset when onNewIntent came in too fast after an
onCreate, which happened because of the configuration changed.

Change-Id: I9a358b6969ac1d17ea98f58218d47bfe983936f0
2010-04-15 11:51:38 -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
Joe Onorato 0e43d78582 am 7018d8e3: Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch. 2010-04-15 06:36:03 -07:00
Joe Onorato 5435ff76eb am ac03330c: Fix 2583234 - It\'s ok for mCallbacks to be null. 2010-04-15 06:36:01 -07:00
Romain Guy ec1c50ab4f Merge "Prevent view ids collisions in the workspace. Bug #2498787" 2010-04-14 14:57:01 -07:00
Romain Guy 1c01b6a138 Prevent view ids collisions in the workspace.
Bug #2498787

Change-Id: I8f007eb2759d00f52e05e776a70510ba3a213ae9
2010-04-14 14:56:34 -07:00
Daniel Sandler dca661236c Batch loading of icons for AllApps.
AllAppsList now maintains <data> and <added> in sorted
order, to amortize the cost of sorting the apps list over
multiple batches.

Launcher boosts thread priority on first launch, but we now
reduce thread priority to normal after the main workspace
has been drawn but before all apps are loaded.

Experimental feature: a short delay is introduced between
batches to help free up the CPU (as well as to show that we
are indeed batching apps).

Bug: 2562420
Change-Id: I2035ec3e819b4e7993a80c6d03bfad3914c95a7a
2010-04-14 14:36:10 -04:00
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