summaryrefslogtreecommitdiffstats
path: root/src/net/hoopajoo
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2011-01-04 23:21:13 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2011-01-04 23:21:13 (GMT)
commitdb5e0f0310b74ac5d054c1f92a0de74c73ae6ab7 (patch)
treeb844cbf5a971ce70986b7c97f658ae963d1da23c /src/net/hoopajoo
parent8435e6bd6c02aeb33db03e2c150453a84bdd268e (diff)
downloadSoftKeys-db5e0f0310b74ac5d054c1f92a0de74c73ae6ab7.zip
SoftKeys-db5e0f0310b74ac5d054c1f92a0de74c73ae6ab7.tar.gz
SoftKeys-db5e0f0310b74ac5d054c1f92a0de74c73ae6ab7.tar.bz2
Replaced some magic numbers with constants
Diffstat (limited to 'src/net/hoopajoo')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/Keys.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/Keys.java b/src/net/hoopajoo/android/SoftKeys/Keys.java
index 5f7f8c1..32d2136 100644
--- a/src/net/hoopajoo/android/SoftKeys/Keys.java
+++ b/src/net/hoopajoo/android/SoftKeys/Keys.java
@@ -503,7 +503,7 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen
List<Integer> keyids = new ArrayList<Integer>();
switch( id ) {
case R.id.back:
- keyids.add( 4 );
+ keyids.add( K.KEYID_BACK );
break;
case R.id.home:
@@ -517,11 +517,11 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen
return true;
case R.id.menu:
- keyids.add( 82 );
+ keyids.add( K.KEYID_MENU );
break;
case R.id.search:
- keyids.add( 84 );
+ keyids.add( K.KEYID_SEARCH );
break;
case R.id.exit:
@@ -536,12 +536,12 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen
// if longclick then add another back, e.g. for apps that do something odd like pause when you
// open another app, so you can back out of that then send the intended key
if( longClick ) {
- keyids.add( 0, 4 );
+ keyids.add( 0, K.KEYID_BACK );
}
if( backout ) {
// if we need to back out of softkeys before we send the other keys
- keyids.add( 0, 4 );
+ keyids.add( 0, K.KEYID_BACK );
}
((Globals)getApplication()).sendKeys( keyids );