Skip to content

Commit 6d5126b

Browse files
committed
Merge remote-tracking branch 'origin/hotfix'
2 parents 8a29337 + 5a120d7 commit 6d5126b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

cSploit/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ android {
5353
minSdkVersion 9
5454
targetSdkVersion 22
5555
versionCode 5
56-
versionName "1.6.3"
56+
versionName "1.6.4"
5757
if(System.getenv("NIGHTLY_BUILD")) {
5858
versionName += "+" + System.getenv("NIGHTLY_BUILD_COMMIT").substring(0, 7)
5959
}

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)