Commit Graph

16456 Commits

Author SHA1 Message Date
Romain Guy 4c58c485d8 Fixes #1844053. Home was accepting all drops, even when there was no room left for a drop. This change fixes this while retaining the 'snap to vacant cell' ability added in Cupcake. 2009-05-12 17:35:41 -07:00
Jeff Sharkey 83f111d129 Prevent race condition when cancelling long-press for scroll.
When dragging between workspaces in rapid succession, the canceling of the
original long-press timer wasn't being triggered correctly.  (When the timer
fires, it might read an invalid Workspace.allowLongPress() value.)

This patchset correctly cancels any pending long-press timers once a desktop
scroll begins, and we don't need to rely on the allowLongPress() value.
2009-05-11 18:18:16 -07:00
Android (Google) Code Review ecadabf578 Merge change 1372 into donut
* changes:
  Fixes #1596240. Optimize invalidate/draw passes by marking opaque views and avoiding drawing them. Whenever a View requests an invalidate its parent check whether the view is opaque or not. When the view is not opaque, the framework behaves as it used to. However, when a view is opaque, the parent marks itself as being dirty because of an opaque view. Its parent then does the same, and so on. When the framework then starts drawing the views, it does not draw views marked as dirty opaque. If a view is dirty opaque and receives an invalidate request from a non-opaque view, it then clears the dirty opaque flag and behaves as before.
2009-05-11 15:03:50 -07:00
Romain Guy 263e019baa Fixes #1596240. Optimize invalidate/draw passes by marking opaque views and avoiding drawing them. Whenever a View requests an invalidate its parent check whether the view is opaque or not. When the view is not opaque, the framework behaves as it used to. However, when a view is opaque, the parent marks itself as being dirty because of an opaque view. Its parent then does the same, and so on. When the framework then starts drawing the views, it does not draw views marked as dirty opaque. If a view is dirty opaque and receives an invalidate request from a non-opaque view, it then clears the dirty opaque flag and behaves as before. 2009-05-11 11:50:46 -07:00
Ramanan Rajeswaran 82fb8aab77 am c4c1f32: AI 148592: Fix wallpaperchooser from previewing the default_
Merge commit 'c4c1f32159cf125f60c6057e5099aa3e0dc439cf' into donut

* commit 'c4c1f32159cf125f60c6057e5099aa3e0dc439cf':
  AI 148592: Fix wallpaperchooser from previewing the default_wallpaper to wallpaper_lake. This issue is exposed
2009-05-08 13:17:39 -07:00
Ramanan Rajeswaran c4c1f32159 AI 148592: Fix wallpaperchooser from previewing the default_wallpaper to wallpaper_lake. This issue is exposed
when we override the default wallpaper.
  BUG=1836838

Automated import of CL 148592
2009-05-08 13:15:08 -07:00
Romain Guy 82d94d9e9e Fixes 1543726. Double-clicking Home should not make the workspace disappear. This was caused by the workspace optimization that draws only what is thought to be the current celllayout. 2009-05-06 17:43:13 -07:00
Romain Guy 51afc022fa Fix obsolete javadoc 2009-05-04 18:03:43 -07:00
Romain Guy 5a94139ff6 Fixes #1780990. Do not save the open state of the drawer when the user leaves Home by launching an application. 2009-04-28 15:18:25 -07:00
Karl Rosaen 71b0594a6f Merge branch 'readonly-p4-donut' into donut 2009-04-23 19:01:37 -07:00
Karl Rosaen 138a04170d AI 147564: Merge back from search branch to donut. Notes:
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy)
  - all new public apis are @hidden; they will still get reviewed by api council once we're in git
  - other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks
  to the contacts provider that was reviewed by jham

Automated import of CL 147564
2009-04-23 19:00:21 -07:00
Jeff Sharkey 70864289fb Make Launcher more forgiving when dragging desktop items.
This change adds nearby-area searching when dragging desktop items into already-occupied cells.  This approach tries harder to find a matching area, instead of strictly rejecting invalid moves.

We also draw a "snag" during the drag to show where an item would be dropped, but only if we would drop into an alternative cell.  This gives users better feedback about where things will drop.

http://b/issue?id=1634887
2009-04-08 16:44:27 -07:00
Jeffrey Sharkey 7bd74a410b AI 143908: am: CL 143907 Make search widget drop-down wider.
Original author: jsharkey
  Merged from: //branches/cupcake/...

Automated import of CL 143908
2009-03-31 18:25:03 -07:00
Jeffrey Sharkey 1796c48dd7 AI 143907: Make search widget drop-down wider.
BUG=1749373

Automated import of CL 143907
2009-03-31 18:24:45 -07:00
Jeffrey Sharkey 2bbcae1922 AI 143776: am: CL 143622 Correctly startListening() for widget updates when first boot completes.
During the first boot upgrade, LauncherProvider will deleteHost() to clear out any old appWidgetId bindings.  During the first boot, Launcher calls AppWidgetHost.startListening() to watch for widget updates.  It also calls loadUserItems(), which loads data from LauncherProvider, triggering the database creation and deleteHost() call.  Because deleteHost() removes any existing callbacks, any future widget updates are dropped on the floor.  (This can currently be solved by rebooting, because there isn't an upgrade on subsequent boots.)
  This bug was particularly evident on vfpioneer-userdebug builds, as there aren't any configuration changes that cause Launcher to be destroyed and recreated.  (When destroyed and recreated, we startListening() again, and LauncherProvider doesn't call deleteHost().)
  To handle this special case, Launcher creates a ContentObserver pointing at a specific URI, which the LauncherProvider notifies when the AppWidgetHost is reset through deleteHost(), allowing Launcher to correctly startListening() again.
  Original author: jsharkey
  Merged from: //branches/cupcake/...

Automated import of CL 143776
2009-03-31 14:37:57 -07:00
Jeffrey Sharkey e5b142656c AI 143622: Correctly startListening() for widget updates when first boot completes.
During the first boot upgrade, LauncherProvider will deleteHost() to clear out any old appWidgetId bindings.  During the first boot, Launcher calls AppWidgetHost.startListening() to watch for widget updates.  It also calls loadUserItems(), which loads data from LauncherProvider, triggering the database creation and deleteHost() call.  Because deleteHost() removes any existing callbacks, any future widget updates are dropped on the floor.  (This can currently be solved by rebooting, because there isn't an upgrade on subsequent boots.)
  This bug was particularly evident on vfpioneer-userdebug builds, as there aren't any configuration changes that cause Launcher to be destroyed and recreated.  (When destroyed and recreated, we startListening() again, and LauncherProvider doesn't call deleteHost().)
  To handle this special case, Launcher creates a ContentObserver pointing at a specific URI, which the LauncherProvider notifies when the AppWidgetHost is reset through deleteHost(), allowing Launcher to correctly startListening() again.
  BUG=1746104

Automated import of CL 143622
2009-03-31 10:12:20 -07:00
Romain Guy fedc4fcebc AI 143295: am: CL 143294 Fixes #1725672. For good this time. When Home starts for the first time, it spawns a loading thread for the workspace items. That loader is responsible for starting the drawer loader after it's done. Unfortunately, after a wipe data or a database upgrade, the worksapce loader could be interrupted by a ContentProvider notification change which would cause the loader to be cancelled and another workspace loader to be spawned. The new workspace loader, however, would not start the drawer loader because the appropriate flag was not set correctly. This change simply duplicates the flag from the old loader in the new one and all is well.
Original author: romainguy
  Merged from: //branches/cupcake/...

Automated import of CL 143295
2009-03-27 20:48:20 -07:00
Jeffrey Sharkey 591d6d77cc AI 143232: am: CL 143057 Don't NPE when editing a folder name.
Only happens when user changes orientation while editing, where getFolderById can return the wrong folder type for the given ID.
  Original author: jsharkey
  Merged from: //branches/cupcake/...

Automated import of CL 143232
2009-03-27 19:45:21 -07:00
Romain Guy bcc7c577d3 AI 143294: Fixes #1725672. For good this time. When Home starts for the first time, it spawns a loading thread for the workspace items. That loader is responsible for starting the drawer loader after it's done. Unfortunately, after a wipe data or a database upgrade, the worksapce loader could be interrupted by a ContentProvider notification change which would cause the loader to be cancelled and another workspace loader to be spawned. The new workspace loader, however, would not start the drawer loader because the appropriate flag was not set correctly. This change simply duplicates the flag from the old loader in the new one and all is well.
BUG=1725672

Automated import of CL 143294
2009-03-27 17:34:37 -07:00
Romain Guy 829f56a020 AI 143187: am: CL 142933 Fixes #1725672. Rebind the drawer's content early to avoid the dreaded "blank drawer" bug.
Original author: romainguy
  Merged from: //branches/cupcake/...

Automated import of CL 143187
2009-03-27 16:58:13 -07:00
Jeffrey Sharkey 21b086984b AI 143057: Don't NPE when editing a folder name.
Only happens when user changes orientation while editing, where getFolderById can return the wrong folder type for the given ID.
  BUG=1740367

Automated import of CL 143057
2009-03-26 21:35:10 -07:00
Romain Guy 49643eb1d1 Automated import from //branches/cupcake/...@142933,142933 2009-03-26 10:08:23 -07:00
Jeffrey Sharkey c4bbd0a5c0 Automated import from //branches/donutburger/...@142474,142474 2009-03-24 22:47:52 -07:00
Jeffrey Sharkey 2d132af2bb Automated import from //branches/donutburger/...@142038,142038 2009-03-24 21:21:09 -07:00
Romain Guy d93a7d1716 Automated import from //branches/donutburger/...@142016,142016 2009-03-24 21:17:50 -07:00
Romain Guy 9ffb5439b6 Automated import from //branches/donutburger/...@141885,141885 2009-03-24 21:04:15 -07:00
Dianne Hackborn bd2e54d8ae Automated import from //branches/donutburger/...@141844,141844 2009-03-24 21:00:33 -07:00
Romain Guy c5aa56da9a Automated import from //branches/donutburger/...@141664,141664 2009-03-24 20:42:40 -07:00
Jeffrey Sharkey c7fdae1763 Automated import from //branches/donutburger/...@141651,141651 2009-03-24 20:41:22 -07:00
Jeffrey Sharkey 1722796248 Automated import from //branches/cupcake/...@142473,142473 2009-03-24 19:48:03 -07:00
Jeffrey Sharkey 392a6ba4fa Automated import from //branches/cupcake/...@142036,142036 2009-03-24 18:52:29 -07:00
Romain Guy 237eaa1e96 Automated import from //branches/cupcake/...@141884,141884 2009-03-24 18:35:16 -07:00
Dianne Hackborn 92d0dda3dc Automated import from //branches/cupcake/...@141843,141843 2009-03-24 18:30:18 -07:00
Jeffrey Sharkey d18299f1d8 Automated import from //branches/donutburger/...@140670,140670 2009-03-24 18:11:49 -07:00
Romain Guy 9b141a29ba Automated import from //branches/donutburger/...@140648,140648 2009-03-24 18:08:41 -07:00
Romain Guy f18b9082e8 Automated import from //branches/cupcake/...@141663,141663 2009-03-24 18:06:19 -07:00
Jeffrey Sharkey 46a30dba88 Automated import from //branches/cupcake/...@141650,141650 2009-03-24 18:04:35 -07:00
Jeffrey Sharkey 99c8758563 Automated import from //branches/donutburger/...@140592,140592 2009-03-24 17:59:43 -07:00
The Android Open Source Project a6425bdead auto import from //branches/cupcake_rel/...@141571 2009-03-19 23:08:56 -07:00
The Android Open Source Project f96811cdf5 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:48 -07:00
The Android Open Source Project ca9475f040 auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:24 -07:00
The Android Open Source Project 7376faefbb auto import from //branches/cupcake/...@137873 2009-03-11 12:11:58 -07:00
The Android Open Source Project bc219c3c12 auto import from //branches/cupcake/...@137197 2009-03-09 11:52:14 -07:00
The Android Open Source Project 1ff70f7f72 auto import from //depot/cupcake/@136594 2009-03-05 14:34:38 -08:00
The Android Open Source Project 31dd503c6a auto import from //depot/cupcake/@135843 2009-03-03 19:32:27 -08:00
The Android Open Source Project 3189679370 auto import from //depot/cupcake/@135843 2009-03-03 18:28:51 -08:00
The Android Open Source Project 38a75b2d89 auto import from //depot/cupcake/@132589 2009-03-03 14:04:32 -08:00
The Android Open Source Project b28e1b7d95 auto import from //depot/cupcake/@137055 2009-03-02 22:54:41 -08:00
The Android Open Source Project 233a0136ea auto import from //branches/cupcake/...@132276 2009-02-19 10:57:35 -08:00
The Android Open Source Project 98baae654d auto import from //branches/cupcake/...@131421 2009-02-13 12:57:53 -08:00