OSDN Git Service
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:03 +0000 (17:48 -0700)]
Merge korg/donut into korg/master
Bjorn Bringert [Wed, 8 Jul 2009 11:38:25 +0000 (12:38 +0100)]
Don't call SearchManager.isVisible() in Launcher.
SearchManager.isVisible() is a hidden method that should
not be used by applications. Also, SearchManager.stopSearch()
already checks whether the search dialog is visible before
tryinf to dimiss it, so the check in Launcher was redundant.
Romain Guy [Mon, 6 Jul 2009 18:51:18 +0000 (11:51 -0700)]
Related to #
1444844. Caps fling velocity on Home.
Mike LeBeau [Thu, 2 Jul 2009 22:58:21 +0000 (15:58 -0700)]
Fix the search widget taking characters into it rather than forwarding
them to the search dialog. By setting editable=false and inputType=none,
the TextView can still take focus, but key input is forwarded to the
launcher which knows what to do.
Mike LeBeau [Fri, 3 Jul 2009 00:46:59 +0000 (17:46 -0700)]
Close the search dialog when user gets to Home by pressing home button,
but still keep it up if the user pressed e.g. back button.
Android (Google) Code Review [Thu, 2 Jul 2009 23:05:37 +0000 (16:05 -0700)]
Merge change 6127 into donut
* changes:
Remove SearchAutocompleteTextView from Launcher.
Karl Rosaen [Thu, 2 Jul 2009 21:19:44 +0000 (14:19 -0700)]
Remove SearchAutocompleteTextView from Launcher.
Now that the search widget doesn't actually get focus (it just turns into
the search dialog), it is no longer needed.
Romain Guy [Wed, 1 Jul 2009 23:39:46 +0000 (16:39 -0700)]
Fixes #
1956185. Restores the gesture when changing orientation when creating a shortcut.
Romain Guy [Tue, 30 Jun 2009 23:21:04 +0000 (16:21 -0700)]
Use a plain DataOutputStream instead of SharedPreferences in Home.
Romain Guy [Mon, 29 Jun 2009 21:41:20 +0000 (14:41 -0700)]
Fixes #
1949637. Home was setting waitingForResult=true whenever an app was launched.
Home was incorrectly treating apps launches as subactivties launched to obtain results.
This resulted in a protective flag being set when it should not have been.
Romain Guy [Fri, 26 Jun 2009 23:57:39 +0000 (16:57 -0700)]
Fix use of drawing cache in Launcher.
Romain Guy [Fri, 26 Jun 2009 17:31:07 +0000 (10:31 -0700)]
Fixes #
1945905. Prevents the user from clicking the same button mutiple times.
Dianne Hackborn [Thu, 25 Jun 2009 03:08:36 +0000 (20:08 -0700)]
Change name for home's uid to something more generic.
There are lots of things running under home's uid, so give it a more generic
name. Home no longer to blame for all the world's ills!
Romain Guy [Thu, 25 Jun 2009 00:38:45 +0000 (17:38 -0700)]
Fix the build
Android (Google) Code Review [Thu, 25 Jun 2009 00:29:11 +0000 (17:29 -0700)]
Merge change 5291 into donut
* changes:
Add the few missing strings needed by Home.
Romain Guy [Thu, 25 Jun 2009 00:25:39 +0000 (17:25 -0700)]
Add the few missing strings needed by Home.
Romain Guy [Wed, 24 Jun 2009 20:45:46 +0000 (13:45 -0700)]
Fixes #
1940691. Sync packages when home receives a reinstall notification.
Home was only updating known activities. This change makes home also check for
removed activities and added activities.
Romain Guy [Wed, 24 Jun 2009 00:34:54 +0000 (17:34 -0700)]
Fixes #
1937447. Home was not saving the appropriate state when losing focus.
Romain Guy [Fri, 19 Jun 2009 21:28:51 +0000 (14:28 -0700)]
Fixes #
1930608. Drop the gestures tables before attempting to recreate it.
Romain Guy [Tue, 16 Jun 2009 20:12:53 +0000 (13:12 -0700)]
Fixes #
1919280. Home was leaking the gestures window on configuration change.
Dismisses the popup window upon configuration change and correctly restores the
window after the new activity is created. This change also saves/restores the
current gesture and its match. This change also fixes the handling of the back
key when creating a new gesture-based shortcut: the gestures pad is not dismissed
anymore when pressing back in one of the shortcuts dialogs.
Romain Guy [Wed, 17 Jun 2009 23:18:58 +0000 (16:18 -0700)]
Close the gestures pad when pressing Home. A regression was recently introduced when
ignoring the Home key press when Home's window does not have focus.
Android (Google) Code Review [Wed, 17 Jun 2009 17:41:44 +0000 (10:41 -0700)]
Merge change 4479 into donut
* changes:
Adds checks in Home's broadcast receivers to handle only known actions.
Romain Guy [Wed, 17 Jun 2009 17:28:43 +0000 (10:28 -0700)]
Fix handling of the back key on Home in the gestures panel.
Previously, pressing back in a dialog on top of the gestures panel would
always dismiss the gestures panel. This is because the UP event for the
BACK key is sent to the underlying window after dismissing a dialog.
This fix simply checks for DOWN events only.
Romain Guy [Wed, 17 Jun 2009 17:20:34 +0000 (10:20 -0700)]
Adds checks in Home's broadcast receivers to handle only known actions.
Previously, Home would handle any action sent directly to its broadcast
receivers as if it was an UNINSTALL/INSTALL_SHORTCUT action.
Android (Google) Code Review [Tue, 16 Jun 2009 20:49:15 +0000 (13:49 -0700)]
Merge change 4383 into donut
* changes:
Fixes #
1912902. Handles orientation change when renaming gestures.
Romain Guy [Tue, 16 Jun 2009 20:47:58 +0000 (13:47 -0700)]
Fixes #
1912902. Handles orientation change when renaming gestures.
The GesturesActivity was crashing when changing the orientation while
renaming a gesture. This was due to unimplemented support for orientation
changes.
Romain Guy [Tue, 16 Jun 2009 20:25:29 +0000 (13:25 -0700)]
Fixes #
1921372. Pressing Home with the window shade down would show gestures pad.
This change checks for the window focus before taking action. If the Home's window
does not have focus, then the gestures pad is not shown.
Romain Guy [Fri, 12 Jun 2009 20:52:17 +0000 (13:52 -0700)]
When initiating a drag and drop from a folder in home, you could sometimes see
a black background behind the icon. This was due to uncleared drawing caches.
Android (Google) Code Review [Thu, 11 Jun 2009 21:27:05 +0000 (14:27 -0700)]
Merge change 3947 into donut
* changes:
Fixes #
1824492. Removes the clock from the default Home layout.
Romain Guy [Thu, 11 Jun 2009 21:25:47 +0000 (14:25 -0700)]
Fixes #
1824492. Removes the clock from the default Home layout.
Android (Google) Code Review [Thu, 11 Jun 2009 21:10:09 +0000 (14:10 -0700)]
Merge change 3939 into donut
* changes:
Tweak thread priorities in Home to make first boot experience a little better.
Romain Guy [Thu, 11 Jun 2009 20:58:26 +0000 (13:58 -0700)]
Tweak thread priorities in Home to make first boot experience a little better.
Romain Guy [Thu, 11 Jun 2009 20:07:43 +0000 (13:07 -0700)]
Change recognition matchin in Home to immediate mode.
Instead of waiting for Xms after a finger up event to start the recognition process,
do it right away on a finger up event. This provides immediate feedback.
Romain Guy [Thu, 11 Jun 2009 18:12:51 +0000 (11:12 -0700)]
Improve the threading model in the gestures settings activity.
This change checks for isCancelled() inside the loop to be able to terminate
the thread as early as possible.
Eric Fischer [Wed, 10 Jun 2009 22:11:18 +0000 (15:11 -0700)]
Update Portuguese translations.
Eric Fischer [Wed, 10 Jun 2009 19:29:59 +0000 (12:29 -0700)]
am
72281585: AI 149721: Import Portuguese translations.
Merge commit '
72281585d136353ed3814a96448763a2a6f7cca4' into donut
* commit '
72281585d136353ed3814a96448763a2a6f7cca4':
AI 149721: Import Portuguese translations.
Eric Fischer [Wed, 10 Jun 2009 19:26:08 +0000 (12:26 -0700)]
AI 149721: Import Portuguese translations.
Automated import of CL 149721
Romain Guy [Wed, 10 Jun 2009 18:53:57 +0000 (11:53 -0700)]
Fixes
1909513.
Do not show the gestures pad when the user is in the search dialog.
Romain Guy [Wed, 10 Jun 2009 09:48:37 +0000 (02:48 -0700)]
Fix issues with how the gestures pad was hidden when leaving Home.
Romain Guy [Tue, 9 Jun 2009 19:57:21 +0000 (12:57 -0700)]
Add gestures to Home.
Press the Home key while in Home to enable the gestures pad.
Romain Guy [Mon, 8 Jun 2009 22:52:54 +0000 (15:52 -0700)]
Fix locked workspace in Home.
A dialog can be dismissed without being cancelled. This change simply
adds a dismiss listener to the Add dialog in Home to make sure the
workspace is properly unlocked when the dialog is dismissed.
Romain Guy [Mon, 1 Jun 2009 23:11:41 +0000 (16:11 -0700)]
Fixes #
1876911
Moving the trackball up or down on a screen in Home could send the focus
to the left/right, which can be confusing. This issue was introduced by
a change in the way addFocusables() work and Home did not respect the
new behavior.
Android (Google) Code Review [Mon, 1 Jun 2009 22:37:00 +0000 (15:37 -0700)]
Merge change 2865 into donut
* changes:
Fixes #
1890155.
Romain Guy [Mon, 1 Jun 2009 22:34:04 +0000 (15:34 -0700)]
Fixes #
1890155.
Remove shortcuts from folders (closed and opened) whenever the user
uninstalls an application. Home was removing shortcuts from the
workspace and the database but was not updating the UI correctly
when running.
Romain Guy [Mon, 1 Jun 2009 21:54:59 +0000 (14:54 -0700)]
Fixes #
1889268.
Dragging an icon out of a folder was showing a gray background. This was due to the icon's drawing cache background color. This fix simply temporarily resets that color when capturing the view into a Bitmap.
Mike LeBeau [Sat, 23 May 2009 01:08:43 +0000 (18:08 -0700)]
Do not force the soft keyboard open if the search widget is already at the top of the screen.
Forcing the soft keyboard open is done at a specific time when animating the
search widget to the top of the screen in order to time the two animations well,
but we were doing it anyway even if the search widget was already at the top of
the screen and didn't need to animate.
Okay, so git does kinda rock when you're on a plane. :)
Android (Google) Code Review [Mon, 18 May 2009 21:37:50 +0000 (14:37 -0700)]
Merge change 1209 into donut
* changes:
Make Launcher request BIND_APPWIDGET.
Romain Guy [Fri, 15 May 2009 00:43:39 +0000 (17:43 -0700)]
Fix for #
1855127. When Home cannot decode an icon, it should not interrupt the loading of the workspace, but fallback to the default package icon.
Mitsuru Oshima [Wed, 13 May 2009 02:19:10 +0000 (19:19 -0700)]
* re-scale icons that are loaded using different denstiy metrics.
* fix potential npe
Romain Guy [Wed, 13 May 2009 00:35:41 +0000 (17:35 -0700)]
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.
Jeff Sharkey [Tue, 21 Apr 2009 04:03:13 +0000 (21:03 -0700)]
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.
Android (Google) Code Review [Mon, 11 May 2009 22:03:50 +0000 (15:03 -0700)]
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.
Romain Guy [Mon, 11 May 2009 18:50:46 +0000 (11:50 -0700)]
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.
Android (Google) Code Review [Fri, 8 May 2009 21:33:08 +0000 (14:33 -0700)]
Merge change 1274 into donut
* changes:
Modify comments in Launcher strings for global search.
Mike LeBeau [Fri, 8 May 2009 21:27:31 +0000 (14:27 -0700)]
Modify comments in Launcher strings for global search.
Ramanan Rajeswaran [Fri, 8 May 2009 20:17:39 +0000 (13:17 -0700)]
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
Ramanan Rajeswaran [Fri, 8 May 2009 20:15:08 +0000 (13:15 -0700)]
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
Jeff Sharkey [Thu, 7 May 2009 23:12:05 +0000 (16:12 -0700)]
Make Launcher request BIND_APPWIDGET.
See http://b/issue?id=
1839074 for more details.
Romain Guy [Thu, 7 May 2009 00:43:13 +0000 (17:43 -0700)]
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.
Romain Guy [Tue, 5 May 2009 01:03:43 +0000 (18:03 -0700)]
Fix obsolete javadoc
Eric Fischer [Fri, 1 May 2009 00:37:36 +0000 (17:37 -0700)]
am
f40e4dd: AI 148147: Import lots of zh_TW translation changes.
Merge commit '
f40e4dd1cfb1d1faccd3b28ff8b92fce714a0c7c' into donut
* commit '
f40e4dd1cfb1d1faccd3b28ff8b92fce714a0c7c':
AI 148147: Import lots of zh_TW translation changes.
Eric Fischer [Fri, 1 May 2009 00:32:16 +0000 (17:32 -0700)]
AI 148147: Import lots of zh_TW translation changes.
Automated import of CL 148147
Ramanan Rajeswaran [Fri, 1 May 2009 00:28:22 +0000 (17:28 -0700)]
am
fc1a6d1: AI 148132: Add two wallpapers for tmobile and set the defaul
Merge commit '
fc1a6d11747992ec1cdcc6c71899576c5bf8085f' into donut
* commit '
fc1a6d11747992ec1cdcc6c71899576c5bf8085f':
AI 148132: Add two wallpapers for tmobile and set the default wallpaper to tmobile
Ramanan Rajeswaran [Fri, 1 May 2009 00:25:21 +0000 (17:25 -0700)]
AI 148132: Add two wallpapers for tmobile and set the default wallpaper to tmobile
turtle
BUG=
1808772
Automated import of CL 148132
Eric Fischer [Fri, 1 May 2009 00:10:44 +0000 (17:10 -0700)]
am
9ebccd0: AI 148026: Update zh_TW translations.
Merge commit '
9ebccd0e08317e860c17f5db606b3491a3af1616' into donut
* commit '
9ebccd0e08317e860c17f5db606b3491a3af1616':
AI 148026: Update zh_TW translations.
Eric Fischer [Thu, 30 Apr 2009 23:48:34 +0000 (16:48 -0700)]
AI 148026: Update zh_TW translations.
Automated import of CL 148026
Romain Guy [Thu, 30 Apr 2009 22:11:58 +0000 (15:11 -0700)]
Fixes #
1798818. Enable the appropriate cache color hint for folders to speed up the scrolling.
Eric Fischer [Wed, 29 Apr 2009 04:57:28 +0000 (21:57 -0700)]
am
587c717: AI 147492: Update zh_TW translations.
Merge commit '
587c717d006aaf25c89bec504d1e7feeebd96d83' into donut
* commit '
587c717d006aaf25c89bec504d1e7feeebd96d83':
AI 147492: Update zh_TW translations.
Romain Guy [Tue, 28 Apr 2009 22:18:25 +0000 (15:18 -0700)]
Fixes #
1780990. Do not save the open state of the drawer when the user leaves Home by launching an application.
The Android Open Source Project [Fri, 24 Apr 2009 20:55:02 +0000 (13:55 -0700)]
Merge commit 'korg/donut'
Karl Rosaen [Fri, 24 Apr 2009 02:01:37 +0000 (19:01 -0700)]
Merge branch 'readonly-p4-donut' into donut
Karl Rosaen [Fri, 24 Apr 2009 02:00:21 +0000 (19:00 -0700)]
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
Eric Fischer [Thu, 23 Apr 2009 18:59:15 +0000 (11:59 -0700)]
AI 147492: Update zh_TW translations.
Automated import of CL 147492
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:59 +0000 (17:56 -0700)]
merge cupcake into donut
Eric Fischer [Wed, 15 Apr 2009 20:30:20 +0000 (13:30 -0700)]
AI 146365: Import revised translations.
DO NOT MERGE
Automated import of CL 146365
The Android Open Source Project [Wed, 15 Apr 2009 01:18:15 +0000 (18:18 -0700)]
Merge commit 'korg/cupcake'
Eric Fischer [Tue, 14 Apr 2009 19:10:43 +0000 (12:10 -0700)]
AI 146175: Import updated translations.
Automated import of CL 146175
Android (Google) Code Review [Fri, 10 Apr 2009 23:18:20 +0000 (16:18 -0700)]
Merge change 40 into donut
* changes:
Make Launcher more forgiving when dragging desktop items.
Romain Guy [Thu, 9 Apr 2009 21:21:24 +0000 (14:21 -0700)]
AI 145482: am: CL 145182 Fixes #
1777943. Put the Clock back...
Original author: romainguy
Merged from: //branches/cupcake/...
Automated import of CL 145482
Romain Guy [Thu, 9 Apr 2009 21:12:56 +0000 (14:12 -0700)]
AI 145472: am: CL 145085 Fixes #
1777943. Get rid of the Clock widget on the default Home configuration and bring the Search widget to the center screen.
Original author: romainguy
Merged from: //branches/cupcake/...
Automated import of CL 145472
Eric Fischer [Thu, 9 Apr 2009 01:43:30 +0000 (18:43 -0700)]
AI 145225: Import more revised translations into cupcake.
Automated import of CL 145225
Jeff Sharkey [Wed, 8 Apr 2009 04:08:40 +0000 (21:08 -0700)]
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
Romain Guy [Wed, 8 Apr 2009 21:01:29 +0000 (14:01 -0700)]
AI 145182: Fixes #
1777943. Put the Clock back...
BUG=
1777943
Automated import of CL 145182
Romain Guy [Wed, 8 Apr 2009 19:48:14 +0000 (12:48 -0700)]
AI 145085: Fixes #
1777943. Get rid of the Clock widget on the default Home configuration and bring the Search widget to the center screen.
BUG=
1777943
Automated import of CL 145085
Eric Fischer [Wed, 8 Apr 2009 01:15:15 +0000 (18:15 -0700)]
AI 144977: Import revised translations.
DO NOT MERGE
Automated import of CL 144977
Eric Fischer [Tue, 7 Apr 2009 20:55:06 +0000 (13:55 -0700)]
AI 144912: Merge from cupcake:
Change 144891 on 2009/04/07 by enf@ebcdic
Import a bunch of revised translations.
Automated import of CL 144912
Eric Fischer [Tue, 7 Apr 2009 18:48:29 +0000 (11:48 -0700)]
AI 144891: Import a bunch of revised translations.
Automated import of CL 144891
Eric Fischer [Sat, 4 Apr 2009 00:21:53 +0000 (17:21 -0700)]
AI 144558: am: CL 144556 Pick up today's modified translations.
Original author: enf
Merged from: //branches/cupcake/...
Automated import of CL 144558
Eric Fischer [Sat, 4 Apr 2009 00:19:55 +0000 (17:19 -0700)]
AI 144556: Pick up today's modified translations.
Automated import of CL 144556
Eric Fischer [Fri, 3 Apr 2009 04:42:06 +0000 (21:42 -0700)]
AI 144355: Automated g4 rollback of changelist 144335.
*** Reason for rollback ***
Roll back US Spanish import because it made the build too big.
*** Original change description ***
Import US Spanish translations, and a few Japanese changes.
Automated import of CL 144355
Eric Fischer [Fri, 3 Apr 2009 00:15:44 +0000 (17:15 -0700)]
AI 144347: Reimport es_US translations in an attempt to fix the build.
Automated import of CL 144347
Eric Fischer [Thu, 2 Apr 2009 23:42:15 +0000 (16:42 -0700)]
AI 144336: am: CL 144335 Import US Spanish translations, and a few Japanese changes.
Original author: enf
Merged from: //branches/cupcake/...
Automated import of CL 144336
Eric Fischer [Thu, 2 Apr 2009 23:39:22 +0000 (16:39 -0700)]
AI 144335: Import US Spanish translations, and a few Japanese changes.
Automated import of CL 144335
Jeffrey Sharkey [Wed, 1 Apr 2009 01:25:03 +0000 (18:25 -0700)]
AI 143908: am: CL 143907 Make search widget drop-down wider.
Original author: jsharkey
Merged from: //branches/cupcake/...
Automated import of CL 143908
Jeffrey Sharkey [Wed, 1 Apr 2009 01:24:45 +0000 (18:24 -0700)]
AI 143907: Make search widget drop-down wider.
BUG=
1749373
Automated import of CL 143907
Jeffrey Sharkey [Tue, 31 Mar 2009 21:59:08 +0000 (14:59 -0700)]
AI 143792: am: CL 143746 Fix search widget assets to not overlap in landscape mode.
Done by using small button framework assets, but with manual padding adjustments to bring back to original button size.
Original author: jsharkey
Merged from: //branches/cupcake/...
Automated import of CL 143792
Jeffrey Sharkey [Tue, 31 Mar 2009 21:37:57 +0000 (14:37 -0700)]
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
Jeffrey Sharkey [Tue, 31 Mar 2009 19:09:02 +0000 (12:09 -0700)]
AI 143746: Fix search widget assets to not overlap in landscape mode.
Done by using small button framework assets, but with manual padding adjustments to bring back to original button size.
BUG=
1749120
Automated import of CL 143746
Eric Fischer [Tue, 31 Mar 2009 18:11:17 +0000 (11:11 -0700)]
AI 143685: am: CL 143547 Import revised translations.
Original author: enf
Merged from: //branches/cupcake/...
Automated import of CL 143685
Jeffrey Sharkey [Tue, 31 Mar 2009 17:12:20 +0000 (10:12 -0700)]
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