Go to file
Jeffrey Sharkey 9dc115efc0 AI 143789: am: CL 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/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143789
2009-03-31 14:35:45 -07:00
res AI 143712: am: CL 143685 am: CL 143547 Import revised translations. 2009-03-31 14:20:41 -07:00
src/com/android/launcher AI 143789: am: CL 143776 am: CL 143622 Correctly startListening() for widget updates when first boot completes. 2009-03-31 14:35:45 -07:00
Android.mk auto import from //branches/cupcake/...@137197 2009-03-09 11:52:14 -07:00
AndroidManifest.xml AI 143342: am: CL 143191 am: CL 142952 Make Launcher norotate to prevent false-positive rotations. 2009-03-27 18:53:11 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:27 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:27 -08:00