Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d9bba1a authored by Marcello Galhardo's avatar Marcello Galhardo Committed by Android (Google) Code Review
Browse files

Merge "Catch any SecurityException thrown by starting a NoteTaskControllerUpdateService" into main

parents 813da462 90300de6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -325,7 +325,13 @@ constructor(
        } else {
            // TODO(b/278729185): Replace fire and forget service with a bounded service.
            val intent = NoteTaskControllerUpdateService.createIntent(context)
            try {
                // If the user is stopped before 'startServiceAsUser' kicks-in, a
                // 'SecurityException' will be thrown.
                context.startServiceAsUser(intent, user)
            } catch (e: SecurityException) {
                debugLog(error = e) { "Unable to start 'NoteTaskControllerUpdateService'." }
            }
        }
    }