diff options
author | Winson Chung <winsonc@google.com> | 2012-05-04 16:22:30 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-05-06 17:04:26 -0700 |
commit | 2672ff937ea7885d184679dfee9f355b7bf2fc7d (patch) | |
tree | b2d2b967107508c72f4092572d8a18f4cef23c83 /src/com/android/launcher2/LauncherProvider.java | |
parent | 8e21bc54113bf361d959f2c5934035b15f949379 (diff) | |
download | android_packages_apps_Trebuchet-2672ff937ea7885d184679dfee9f355b7bf2fc7d.tar.gz android_packages_apps_Trebuchet-2672ff937ea7885d184679dfee9f355b7bf2fc7d.tar.bz2 android_packages_apps_Trebuchet-2672ff937ea7885d184679dfee9f355b7bf2fc7d.zip |
Adding workaround to allow shortcuts to skip the launch animation. (Bug 6447372)
Change-Id: Ic6e985ea0e9c70044b47279dc9e8886f8fec0507
Diffstat (limited to 'src/com/android/launcher2/LauncherProvider.java')
-rw-r--r-- | src/com/android/launcher2/LauncherProvider.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/launcher2/LauncherProvider.java b/src/com/android/launcher2/LauncherProvider.java index 5e572a575..4cf87d2b4 100644 --- a/src/com/android/launcher2/LauncherProvider.java +++ b/src/com/android/launcher2/LauncherProvider.java @@ -66,7 +66,7 @@ public class LauncherProvider extends ContentProvider { private static final String DATABASE_NAME = "launcher.db"; - private static final int DATABASE_VERSION = 10; + private static final int DATABASE_VERSION = 11; static final String AUTHORITY = "com.android.launcher2.settings"; @@ -477,12 +477,14 @@ public class LauncherProvider extends ContentProvider { version = 9; } - if (version < 10) { + // We bumped the version twice during JB, once to update the launch flags, and once to + // update the override for the default launch animation. + if (version < 11) { // Contact shortcuts need a different set of flags to be launched now // The updateContactsShortcuts change is idempotent, so we can keep using it like // back in the Donut days updateContactsShortcuts(db); - version = 10; + version = 11; } if (version != DATABASE_VERSION) { @@ -535,7 +537,8 @@ public class LauncherProvider extends ContentProvider { // detail activities. newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); - + newIntent.putExtra( + Launcher.INTENT_EXTRA_IGNORE_LAUNCH_ANIMATION, true); newIntent.setData(uri); final ContentValues values = new ContentValues(); |