Commit Graph

23 Commits

Author SHA1 Message Date
Michael Jurka
a8c760d395 Improving LauncherModel performance
- no longer reloading DB on each configuration change
- adding/updating items in DB on background thread

Change-Id: Ie140f31608df84b0ca2d45eb7a210a8a3b36b52f
2011-07-08 14:06:14 -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
Romain Guy
693599f27b Support old-package attribute for default workspace items.
Bug #2509293

Change-Id: I5e76465bceab6b733287f53f6afdcf3d522843fc
2010-03-23 10:58:18 -07:00
Romain Guy
edcce099c9 Fix the build! 2010-03-04 13:03:17 -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
Dianne Hackborn
094fc7ac6d Update to reflect android-common no longer in framework. 2010-02-24 20:01:46 -08:00
Bjorn Bringert
3a928e46bd Fix silent DB upgrade abort
normalizeIcons() was missing a call to setTransactionSuccessful(),
which made the entire DB upgrade silently rollback. So the
DB version was stuck at 6 after an upgrade from Eclair to Froyo.
The only visible effect in the default config was that the search
widget disappeared.

Fixes http://b/issue?id=2451146

Change-Id: I257964e5958286e9819bb5e7b108a261cfabf9b3
2010-02-19 11:15:40 +00:00
Joe Onorato
346e129456 Fix a crash on launcher db upgrade. 2010-02-18 10:34:24 -05:00
Jeff Hamilton
eaf77d6c3d Fix some broken SQL that causes a crash at boot.
Change-Id: I74e7f95b87eb427ad2c44d4197111ed18630e042
2010-02-13 00:08:17 -06:00
Joe Onorato
0589f0f66c Split ApplicationInfo into ApplicationInfo which is used for AllAppsView and ShortcutInfo which is
used for the workspace.

Consolidate the three icon resampling functions into one.

Ensure that the icons stored in LauncherProvider are the right size, so we don't have to resample
them each time we load them.
2010-02-12 12:18:40 -05:00
Bjorn Bringert
cd8fec0281 Don't hardcode component name for search widget
Note that this does not convert any widgets what were bound when
a different global search app was installed. Thus Froyo -> Froyo
upgrades without userdata wipe will see "Problem loading widget".
Workaround: Remove the search widget and add a new one.

Change-Id: I2bcd211c10bbaba66f5f3f82b6785396d957aa25
2010-01-14 15:12:04 +00:00
Tom Taylor
9e97dc97b4 am 0663d1d9: am fd1e757f: Update imports to android-common
Merge commit '0663d1d90dc943e8bfaadb27f270f600d7d2e0a0'

* commit '0663d1d90dc943e8bfaadb27f270f600d7d2e0a0':
  Update imports to android-common
2009-12-21 17:24:40 -08:00
Tom Taylor
fd1e757ff2 Update imports to android-common
Several files were moved to android-common. Update all the references
to import those files from the new location.
2009-12-21 14:00:50 -08:00
Bjorn Bringert
93c45765cc Remove obsolete doc references to LauncherAppWidgetBinder
Change-Id: I8b9c2d8145d56b891f26dabebead35275d81b6ba
2009-12-16 13:23:45 +00:00
Bjorn Bringert
3425134204 Bind converted widgets directly.
Before, Launcher2 sent an intent to
com.android.settings/com.android.settings.LauncherAppWidgetBinder
to bind any converted appwidgets. That doesn't seem to work anymore,
and is not how non-converted widgets are bound. Changing to
binding the widgets directly fixes a problem where the search
widget was not bound after an upgrade from Eclair to Master.

The search widget conversion problem was introduced in
Change I85d64defe155c0cad97fafef6a3db62c6cab504a
where I got rid of the built-in search widget.

This patch may break conversion of legacy built-in
clock and photo widgets, but I believe that was already broken
because of the non-functional widget binding mechanism.

Bug: http://b/2322160
2009-12-15 13:33:11 +00:00
Bjorn Bringert
7984c9496b Get rid of the built-in search widget in Launcher2
Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
2009-12-09 21:48:38 +00:00
Romain Guy
7eb9e5e925 Upgrade Home db to upgrade contacts shortcut to the quick contact action
Change-Id: Icb5606e340a6eafc06ffd1be4bbe3d4f988376d1
2009-12-02 20:10:07 -08:00
Joe Onorato
a30ce8e6b2 Bug 2231692 - Turn off launcher2 logging. 2009-11-11 09:24:37 -08:00
Mike Cleron
3a2b3f2be5 If 3 screens are good 5 will be better 2009-11-05 17:17:50 -08:00
Mike Cleron
b87bd16c8e More capabilities for default home configuration
Added support for adding appwidgets beyond clock and search to the
intital configuration. Also pulled in a previous change in Launcher that
allowed http shortcuts. New syntax looks like this in
default_workspace.xml:

     <appwidget
        launcher:packageName="com.android.settings"
        launcher:className="com.android.settings.widget.SettingsAppWidgetProvider"
        launcher:screen="0"
        launcher:x="0"
        launcher:y="2"
        launcher:spanX="4"
        launcher:spanY="1" />

    <shortcut
        launcher:packageName="com.android.settings"
        launcher:icon="@drawable/ic_launcher_appwidget"
        launcher:title="@string/group_folder"
        launcher:uri="http://www.nytimes.com"
        launcher:screen="2"
        launcher:x="2"
        launcher:y="2" />
2009-10-30 16:36:56 -07:00
Joe Onorato
a5902524d4 Launcher2 compiles. 2009-07-30 13:37:37 -07:00
Joe Onorato
fca7c88f9d Move com/android/launcher -> com/android/launcher2 2009-07-30 10:15:07 -07:00