Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLuo0 committed Apr 7, 2019
1 parent 0f3c6bc commit cafc0b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0.3"
versionName "1.0.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ public Notification getCurrentNotification(String packageName, int id) {

public void forQQ(String packageName, String title, String body, PendingIntent intent, NotificationManagerCompat notificationManagerCompat) {
CheckChannel(packageName);

Notification notification;
if (!(body.contains("联系人给你") || body.contains("你收到了"))) {
if (!(body.contains("联系人给你") || body.contains("你收到了")) || title.contains("QQ空间")) {
int TitleID = StringToA(title.split("\\s\\(")[0]);
String[] bodySplit = body.split(":");
Person sender;
Expand Down Expand Up @@ -176,6 +175,7 @@ public void forQQ(String packageName, String title, String body, PendingIntent i
.setGroup(packageName)
.setContentIntent(intent)
.setAutoCancel(true)
.setOnlyAlertOnce(true)
.build();
notificationManagerCompat.notify(packageName, 0, notification);
}
Expand Down

0 comments on commit cafc0b6

Please sign in to comment.