diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:10 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:10 -0800 |
commit | 9266c558bf1d21ff647525ff99f7dadbca417309 (patch) | |
tree | 1630b1ba80f4793caf39d865528e662bdb1037fe /packages | |
parent | b798689749c64baba81f02e10cf2157c747d6b46 (diff) | |
download | frameworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.zip frameworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.tar.gz frameworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.tar.bz2 |
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'packages')
2 files changed, 20 insertions, 2 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index eb0b03f..e2ea85b 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -63,7 +63,7 @@ class DatabaseHelper extends SQLiteOpenHelper { private static final String TAG = "SettingsProvider"; private static final String DATABASE_NAME = "settings.db"; - private static final int DATABASE_VERSION = 30; + private static final int DATABASE_VERSION = 31; private Context mContext; @@ -314,6 +314,23 @@ class DatabaseHelper extends SQLiteOpenHelper { upgradeVersion = 30; } + + if (upgradeVersion == 30) { + /* + * Upgrade 31 clears the title for all quick launch shortcuts so the + * activities' titles will be resolved at display time. Also, the + * folder is changed to '@quicklaunch'. + */ + db.beginTransaction(); + try { + db.execSQL("UPDATE bookmarks SET folder = '@quicklaunch'"); + db.execSQL("UPDATE bookmarks SET title = ''"); + db.setTransactionSuccessful(); + } finally { + db.endTransaction(); + } + upgradeVersion = 31; + } if (upgradeVersion != currentVersion) { Log.w(TAG, "Got stuck trying to upgrade from version " + upgradeVersion diff --git a/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsProvider.java b/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsProvider.java index 3ae04c7..9ecc3d6 100644 --- a/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsProvider.java +++ b/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsProvider.java @@ -36,7 +36,7 @@ import java.util.HashMap; * Manages a list of feeds for which this client is interested in receiving * change notifications. */ -public class SubscribedFeedsProvider extends SyncableContentProvider { +public class SubscribedFeedsProvider extends AbstractSyncableContentProvider { private static final String TAG = "SubscribedFeedsProvider"; private static final String DATABASE_NAME = "subscribedfeeds.db"; private static final int DATABASE_VERSION = 10; @@ -114,6 +114,7 @@ public class SubscribedFeedsProvider extends SyncableContentProvider { db.execSQL("CREATE TABLE _deleted_feeds (" + "_sync_version TEXT," + // From the sync source "_sync_id TEXT," + + (isTemporary() ? "_sync_local_id INTEGER," : "") + // Used while syncing, "_sync_account TEXT," + "_sync_mark INTEGER, " + // Used to filter out new rows "UNIQUE(_sync_id))"); |