summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2011-01-06 17:13:55 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2011-01-06 17:13:55 (GMT)
commite8e63316469099678a88ce809cc9e8ff160a81e0 (patch)
tree205842ae3e10e01032c76a2011f7547bd2c98a1c
parente0b6054dbf609241a2c489df40bb255bff781cd0 (diff)
downloadSoftKeys-e8e63316469099678a88ce809cc9e8ff160a81e0.zip
SoftKeys-e8e63316469099678a88ce809cc9e8ff160a81e0.tar.gz
SoftKeys-e8e63316469099678a88ce809cc9e8ff160a81e0.tar.bz2
Fix softkeys notification
-rw-r--r--src/net/hoopajoo/android/SoftKeys/Keys.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/Keys.java b/src/net/hoopajoo/android/SoftKeys/Keys.java
index 48a6927..c5b98bc 100644
--- a/src/net/hoopajoo/android/SoftKeys/Keys.java
+++ b/src/net/hoopajoo/android/SoftKeys/Keys.java
@@ -272,6 +272,9 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen
Notification n = new Notification( b.mIconId, null, 0 );
Intent si = new Intent( b.mAction );
si.putExtra( "keyname", b.mExtraString );
+ if( b.mAction == Intent.ACTION_MAIN ) {
+ si.setPackage( getPackageName() );
+ }
PendingIntent i = PendingIntent.getActivity( this, 0, si, 0 );
// if we got a drawable but no view then set up our own remote view