From e4f9891f01bdc10d8f96e4e2429e2f4d0558238b Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Tue, 25 Jun 2013 15:13:26 -0400 Subject: 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 --- src/com/android/launcher3/CheckLongPressHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/launcher3/CheckLongPressHelper.java') 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() { -- cgit v1.2.3