Skip to content

Commit d29597b

Browse files
committed
fixes #555
1 parent 539f982 commit d29597b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cSploit/src/org/csploit/android/services/receivers/MsfRpcdServiceReceiver.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.app.Activity;
44
import android.app.NotificationManager;
5+
import android.app.PendingIntent;
56
import android.content.Context;
67
import android.content.Intent;
78
import android.content.IntentFilter;
@@ -68,16 +69,21 @@ private void showToastForStatus(Context context, MsfRpcdService.Status status) {
6869
}
6970

7071
private void updateNotificationForStatus(Context context, MsfRpcdService.Status status) {
71-
NotificationCompat.Builder mBuilder =
72+
NotificationCompat.Builder builder =
7273
new NotificationCompat.Builder(context)
7374
.setSmallIcon(R.drawable.exploit_msf)
7475
.setContentTitle(context.getString(R.string.msf_status))
7576
.setProgress(0, 0, status.inProgress())
7677
.setContentText(context.getString(status.getText()))
7778
.setColor(ContextCompat.getColor(context, status.getColor()));
7879

80+
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,
81+
new Intent(), PendingIntent.FLAG_UPDATE_CURRENT);
82+
83+
builder.setContentIntent(pendingIntent);
84+
7985
NotificationManager mNotificationManager =
8086
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
81-
mNotificationManager.notify(MSF_NOTIFICATION, mBuilder.build());
87+
mNotificationManager.notify(MSF_NOTIFICATION, builder.build());
8288
}
8389
}

0 commit comments

Comments
 (0)