summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CheckLongPressHelper.java
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-06-25 15:13:26 -0400
committerDaniel Sandler <dsandler@android.com>2013-06-27 15:17:11 -0400
commite4f9891f01bdc10d8f96e4e2429e2f4d0558238b (patch)
tree3de05f7433f52bfcade535ab4aa5176675588d56 /src/com/android/launcher3/CheckLongPressHelper.java
parentfe7750b5d6cb76a3aa7b1b479e4cc243653fa0c1 (diff)
downloadandroid_packages_apps_Trebuchet-e4f9891f01bdc10d8f96e4e2429e2f4d0558238b.tar.gz
android_packages_apps_Trebuchet-e4f9891f01bdc10d8f96e4e2429e2f4d0558238b.tar.bz2
android_packages_apps_Trebuchet-e4f9891f01bdc10d8f96e4e2429e2f4d0558238b.zip
Lazily instantiate LauncherAppState.
The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
Diffstat (limited to 'src/com/android/launcher3/CheckLongPressHelper.java')
-rw-r--r--src/com/android/launcher3/CheckLongPressHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/CheckLongPressHelper.java b/src/com/android/launcher3/CheckLongPressHelper.java
index 968dc79aa..81149793d 100644
--- a/src/com/android/launcher3/CheckLongPressHelper.java
+++ b/src/com/android/launcher3/CheckLongPressHelper.java
@@ -45,7 +45,8 @@ public class CheckLongPressHelper {
if (mPendingCheckForLongPress == null) {
mPendingCheckForLongPress = new CheckForLongPress();
}
- mView.postDelayed(mPendingCheckForLongPress, LauncherAppState.getLongPressTimeout());
+ mView.postDelayed(mPendingCheckForLongPress,
+ LauncherAppState.getInstance().getLongPressTimeout());
}
public void cancelLongPress() {