1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

formatting cleanup

This commit is contained in:
Nikolay Pultsin 2012-04-18 03:28:47 +01:00
parent 9db7ec0a18
commit 3c29d063ec

View file

@ -277,13 +277,13 @@ public class ZLAndroidWidget extends View implements ZLViewWidget, View.OnLongCl
private volatile boolean myLongClickPerformed;
private void postLongClickRunnable() {
myLongClickPerformed = false;
myLongClickPerformed = false;
myPendingPress = false;
if (myPendingLongClickRunnable == null) {
myPendingLongClickRunnable = new LongClickRunnable();
}
postDelayed(myPendingLongClickRunnable, 2 * ViewConfiguration.getLongPressTimeout());
}
if (myPendingLongClickRunnable == null) {
myPendingLongClickRunnable = new LongClickRunnable();
}
postDelayed(myPendingLongClickRunnable, 2 * ViewConfiguration.getLongPressTimeout());
}
private class ShortClickRunnable implements Runnable {
public void run() {
@ -318,10 +318,10 @@ public class ZLAndroidWidget extends View implements ZLViewWidget, View.OnLongCl
}
if (myPendingPress) {
if (view.isDoubleTapSupported()) {
if (myPendingShortClickRunnable == null) {
myPendingShortClickRunnable = new ShortClickRunnable();
}
postDelayed(myPendingShortClickRunnable, ViewConfiguration.getDoubleTapTimeout());
if (myPendingShortClickRunnable == null) {
myPendingShortClickRunnable = new ShortClickRunnable();
}
postDelayed(myPendingShortClickRunnable, ViewConfiguration.getDoubleTapTimeout());
} else {
view.onFingerSingleTap(x, y);
}