From b6f04000e907088696eaf8d104cccf1ec0167286 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 15 Feb 2011 14:34:16 -0800 Subject: Fix dragging popper causes dpad to toggle bug (longclick/drag interaction) diff --git a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java index 0795e03..f16486b 100644 --- a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java +++ b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java @@ -339,9 +339,12 @@ public class SoftKeysService extends Service { b.setOnLongClickListener( new OnLongClickListener() { @Override public boolean onLongClick( View v ) { - mExtraEnabled = ! mExtraEnabled; - matchExtraView(); - return true; + if( ! mDidDrag ) { + mExtraEnabled = ! mExtraEnabled; + matchExtraView(); + return true; + } + return false; } } ); -- cgit v0.10.2