From e8e63316469099678a88ce809cc9e8ff160a81e0 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 6 Jan 2011 09:13:55 -0800 Subject: Fix softkeys notification 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 -- cgit v0.10.2