summaryrefslogtreecommitdiffstats
path: root/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/hoopajoo/android/SoftKeys/SoftKeysService.java')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/SoftKeysService.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
index d5e15d7..aea1634 100644
--- a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
+++ b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
@@ -108,7 +108,7 @@ public class SoftKeysService extends Service {
}
};
- OnLongClickListener longpress = new OnLongClickListener() {
+ OnLongClickListener longpress_rotate = new OnLongClickListener() {
@Override
public boolean onLongClick( View v ) {
if( mDraggingView || mDidDrag ) {
@@ -267,10 +267,11 @@ public class SoftKeysService extends Service {
((LinearLayout)mView.findViewById( R.id.button_container )).removeView( container.findViewById( R.id.settings ) ); // no settings in service
// arrange buttons
- Keys.applyButtons( settings, mView, c, longpress, touch, true );
+ Keys.applyButtons( settings, mView, c, null, touch, true );
mView.setVisibility( View.INVISIBLE );
mView.setOnTouchListener( touch );
- mView.setOnLongClickListener( longpress );
+ mView.setOnLongClickListener( longpress_rotate );
+ mView.findViewById( R.id.exit ).setOnLongClickListener( longpress_rotate );
applyTransparency( mView, settings.getInt( "service_transparency", 0 ) );