Lowering long press time for workspace items.

Change-Id: I6a3b0e13681f07d0e50bf2dcec777037c4ef51a5
This commit is contained in:
Winson Chung
2012-02-23 15:23:44 -08:00
parent 72d598400d
commit 88f334571f
5 changed files with 121 additions and 41 deletions

View File

@@ -25,6 +25,7 @@ import android.content.IntentFilter;
import android.content.res.Configuration;
import android.database.ContentObserver;
import android.os.Handler;
import android.view.MotionEvent;
import java.lang.ref.WeakReference;
@@ -33,6 +34,7 @@ public class LauncherApplication extends Application {
public IconCache mIconCache;
private static boolean sIsScreenLarge;
private static float sScreenDensity;
private static int sLongPressTimeout = 300;
WeakReference<LauncherProvider> mLauncherProvider;
@Override
@@ -130,4 +132,8 @@ public class LauncherApplication extends Application {
public static float getScreenDensity() {
return sScreenDensity;
}
public static int getLongPressTimeout() {
return sLongPressTimeout;
}
}