Adding animation post-installing a shortcut.

Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
This commit is contained in:
Winson Chung committed 2012-03-23 11:17:25 -07:00
1 parent 6b8a02d63a
commit f0c6ae0e35
8 files changed
+215 -57

No files matched your search

@@ -37,6 +37,7 @@ public class LauncherApplication extends Application {
private static boolean sIsScreenLarge;
private static float sScreenDensity;
private static int sLongPressTimeout = 300;
private static final String sSharedPreferencesKey = "com.android.launcher2.prefs";
WeakReference<LauncherProvider> mLauncherProvider;
@Override
@@ -94,7 +95,10 @@ public class LauncherApplication extends Application {
private final ContentObserver mFavoritesObserver = new ContentObserver(new Handler()) {
@Override
public void onChange(boolean selfChange) {
mModel.startLoader(LauncherApplication.this, false);
// If the database has ever changed, then we really need to force a reload of the
// workspace on the next load
mModel.resetLoadedState(false, true);
mModel.startLoaderFromBackground();
}
};
@@ -119,6 +123,10 @@ public class LauncherApplication extends Application {
return mLauncherProvider.get();
}
public static String getSharedPreferencesKey() {
return sSharedPreferencesKey;
}
public static boolean isScreenLarge() {
return sIsScreenLarge;
}