Skip to content

Commit 19a1088

Browse files
committed
Fix Bugs
1 parent 5a93c1b commit 19a1088

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ android {
44
compileSdkVersion 32
55
defaultConfig {
66
applicationId "io.github.ratul.topactivity"
7-
minSdkVersion 21
8-
targetSdkVersion 29
7+
minSdkVersion 24
8+
targetSdkVersion 28
99
versionCode 18
1010
versionName "1.5.8"
1111
}

app/src/main/java/io/github/ratul/topactivity/model/NotificationMonitor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ public static void showNotification(Context context, boolean isPaused) {
8383
.setVisibility(NotificationCompat.VISIBILITY_SECRET)
8484
.setPriority(NotificationCompat.PRIORITY_MAX)
8585
.setOngoing(!isPaused)
86-
.setContentIntent(pIntent)
87-
.build();
88-
86+
.setContentIntent(pIntent);
87+
8988
builder.addAction(R.drawable.ic_launcher_foreground, context.getString(R.string.noti_action_stop),
9089
getPendingIntent(context, ACTION_STOP)).setContentIntent(pIntent);
9190

0 commit comments

Comments
 (0)