mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-07-03 14:06:34 +02:00
4f5c6a5fd1
- replaces `Service.startForeground` with `ServiceCompat.startForeground` with support for different API levels; - adds try-catch block to handle exceptions and report errors if startForeground fails. references: - https://issuetracker.google.com/issues/307329994 - https://developer.android.com/develop/background-work/services/foreground-services#start