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

Commit e5f38f97 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Record Issue QS Tile] Don't crash if unregistering from already...

Merge "[Record Issue QS Tile] Don't crash if unregistering from already unregistered service" into main
parents a49fd0b4 cbdee5de
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -69,7 +69,11 @@ open class UserAwareConnection(
    @WorkerThread
    fun doUnBind() {
        if (shouldUnBind) {
            try {
                userContextProvider.userContext.unbindService(this)
            } catch (e: IllegalArgumentException) {
                Log.e(TAG, "Can't disconnect because service wasn't connected anyways.", e)
            }
            shouldUnBind = false
        }
    }