Skip to content

Commit 063b186

Browse files
committed
Fix play store google build issue
1 parent 51b5496 commit 063b186

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
else -> 0
4242
}
4343

44-
val vCode = 424
44+
val vCode = 427
4545
versionCode = vCode - singleAbiNum
4646
versionName = "2.1.14"
4747

app/src/main/java/com/ismartcoding/plain/services/PNotificationListenerService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.ismartcoding.lib.helpers.JsonHelper
1414
import com.ismartcoding.lib.logcat.LogCat
1515
import com.ismartcoding.plain.TempData
1616
import com.ismartcoding.plain.activityManager
17+
import com.ismartcoding.plain.enums.AppFeatureType
1718
import com.ismartcoding.plain.extensions.toDNotification
1819
import com.ismartcoding.plain.events.CancelNotificationsEvent
1920
import com.ismartcoding.plain.features.Permission
@@ -169,6 +170,9 @@ class PNotificationListenerService : NotificationListenerService() {
169170

170171
companion object {
171172
fun toggle(context: Context, enable: Boolean) {
173+
if (!AppFeatureType.NOTIFICATIONS.has()) {
174+
return
175+
}
172176
if (enable) {
173177
val collectorComponent = ComponentName(context, PNotificationListenerService::class.java)
174178
LogCat.d("ensureCollectorRunning collectorComponent: $collectorComponent")

0 commit comments

Comments
 (0)