Commit b899403b authored by wanglei's avatar wanglei

...

parent a5c930a7
...@@ -32,6 +32,7 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_DOCUMENTS ...@@ -32,6 +32,7 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_DOCUMENTS
import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_PHOTOS import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_PHOTOS
import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_VIDEOS import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_VIDEOS
import com.base.filerecoveryrecyclebin.help.FileHelp import com.base.filerecoveryrecyclebin.help.FileHelp
import com.base.filerecoveryrecyclebin.utils.EventUtils
import com.base.filerecoveryrecyclebin.utils.LogEx import com.base.filerecoveryrecyclebin.utils.LogEx
import com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadService.startForeground import com.mbridge.msdk.playercommon.exoplayer2.offline.DownloadService.startForeground
import java.io.File import java.io.File
...@@ -67,7 +68,10 @@ class StayNotificationService : Service() { ...@@ -67,7 +68,10 @@ class StayNotificationService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) { if (intent == null) {
EventUtils.event("onStartCommand", "Foreground System auto launch intent=null isRunning=$isRunning")
}
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU || intent == null) {
return START_NOT_STICKY return START_NOT_STICKY
} }
if (fileObserver == null) { if (fileObserver == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment