mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Lowering long press time for workspace items.
Change-Id: I6a3b0e13681f07d0e50bf2dcec777037c4ef51a5
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user