Loading app/src/main/java/foundation/e/advancedprivacy/NotificationsPresenter.kt +1 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class NotificationsPresenter( } }.launchIn(appScope) trackersStatisticsUseCase.lastCall.map(::showLastTrackerCall).launchIn(appScope) // trackersStatisticsUseCase.lastCall.map(::showLastTrackerCall).launchIn(appScope) } private fun createNotificationFirstBootChannel() { Loading trackersserviceeos/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersService.kt +0 −16 Original line number Diff line number Diff line Loading @@ -17,14 +17,9 @@ */ package foundation.e.advancedprivacy.trackers.service import android.app.NotificationManager import android.app.Service import android.content.Intent import android.content.pm.ServiceInfo import android.os.IBinder import androidx.core.app.ServiceCompat import foundation.e.advancedprivacy.core.utils.notificationBuilder import foundation.e.advancedprivacy.domain.entities.NOTIFICATION_TRACKER_FLAG import foundation.e.advancedprivacy.domain.entities.NotificationContent import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers Loading @@ -51,17 +46,6 @@ class TrackersService : Service() { } override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { ServiceCompat.startForeground( this, NOTIFICATION_TRACKER_FLAG, notificationBuilder( context = this, content = notificationTrackerFlag ).setPriority(NotificationManager.IMPORTANCE_MIN) .build(), ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED ) when (intent?.action) { ACTION_START -> { if (writeLogJob?.isActive != true || Loading trackersserviceeos/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersSupervisorEos.kt +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ class TrackersSupervisorEos(private val context: Context) : TrackersSupervisor { private fun startService(): Boolean { val intent = Intent(context, TrackersService::class.java) intent.action = ACTION_START return context.startForegroundService(intent) != null return context.startService(intent) != null } override fun stop(): Boolean { Loading Loading
app/src/main/java/foundation/e/advancedprivacy/NotificationsPresenter.kt +1 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class NotificationsPresenter( } }.launchIn(appScope) trackersStatisticsUseCase.lastCall.map(::showLastTrackerCall).launchIn(appScope) // trackersStatisticsUseCase.lastCall.map(::showLastTrackerCall).launchIn(appScope) } private fun createNotificationFirstBootChannel() { Loading
trackersserviceeos/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersService.kt +0 −16 Original line number Diff line number Diff line Loading @@ -17,14 +17,9 @@ */ package foundation.e.advancedprivacy.trackers.service import android.app.NotificationManager import android.app.Service import android.content.Intent import android.content.pm.ServiceInfo import android.os.IBinder import androidx.core.app.ServiceCompat import foundation.e.advancedprivacy.core.utils.notificationBuilder import foundation.e.advancedprivacy.domain.entities.NOTIFICATION_TRACKER_FLAG import foundation.e.advancedprivacy.domain.entities.NotificationContent import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers Loading @@ -51,17 +46,6 @@ class TrackersService : Service() { } override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { ServiceCompat.startForeground( this, NOTIFICATION_TRACKER_FLAG, notificationBuilder( context = this, content = notificationTrackerFlag ).setPriority(NotificationManager.IMPORTANCE_MIN) .build(), ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED ) when (intent?.action) { ACTION_START -> { if (writeLogJob?.isActive != true || Loading
trackersserviceeos/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersSupervisorEos.kt +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ class TrackersSupervisorEos(private val context: Context) : TrackersSupervisor { private fun startService(): Boolean { val intent = Intent(context, TrackersService::class.java) intent.action = ACTION_START return context.startForegroundService(intent) != null return context.startService(intent) != null } override fun stop(): Boolean { Loading