File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/com/ismartcoding/plain/services Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import com.ismartcoding.lib.helpers.JsonHelper
1414import com.ismartcoding.lib.logcat.LogCat
1515import com.ismartcoding.plain.TempData
1616import com.ismartcoding.plain.activityManager
17+ import com.ismartcoding.plain.enums.AppFeatureType
1718import com.ismartcoding.plain.extensions.toDNotification
1819import com.ismartcoding.plain.events.CancelNotificationsEvent
1920import 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 " )
You can’t perform that action at this time.
0 commit comments