mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Adding animation post-installing a shortcut.
Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user