summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMike Cleron <mcleron@google.com>2013-02-01 11:00:37 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-01 11:00:37 -0800
commit08fffce8425762327bb217ce0c3a3fd23bc1f483 (patch)
tree9d27334d2d9e8d265c7a5411946c4b66f06d41fa /packages
parent69b7493b2278c9b8d966a17c7c4db3166bf0893b (diff)
parent0214f205f619ebc23b5069880afdb09259b0ced7 (diff)
downloadframeworks_base-08fffce8425762327bb217ce0c3a3fd23bc1f483.zip
frameworks_base-08fffce8425762327bb217ce0c3a3fd23bc1f483.tar.gz
frameworks_base-08fffce8425762327bb217ce0c3a3fd23bc1f483.tar.bz2
am 0214f205: Merge "Revert "Fixing backwards cmpatibility for enabling explore by touch""
# Via Android (Google) Code Review * commit '0214f205f619ebc23b5069880afdb09259b0ced7': Revert "Fixing backwards cmpatibility for enabling explore by touch"
Diffstat (limited to 'packages')
-rw-r--r--packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
index fc0ff55..695c2aa 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -71,7 +71,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
// database gets upgraded properly. At a minimum, please confirm that 'upgradeVersion'
// is properly propagated through your change. Not doing so will result in a loss of user
// settings.
- private static final int DATABASE_VERSION = 96;
+ private static final int DATABASE_VERSION = 97;
private Context mContext;
private int mUserHandle;
@@ -1536,6 +1536,22 @@ public class DatabaseHelper extends SQLiteOpenHelper {
upgradeVersion = 96;
}
+ if (upgradeVersion == 96) {
+ // Remove Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES
+ if (mUserHandle == UserHandle.USER_OWNER) {
+ db.beginTransaction();
+ try {
+ db.execSQL("DELETE FROM system WHERE name='"
+ + Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES
+ + "'");
+ db.setTransactionSuccessful();
+ } finally {
+ db.endTransaction();
+ }
+ }
+ upgradeVersion = 97;
+ }
+
// *** Remember to update DATABASE_VERSION above!
if (upgradeVersion != currentVersion) {