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

Commit 66bdaeed authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Always initialize PendingDrawnTasksCount

Always initialize PendingDrawnTasksCount in
PendingDrawnTasksContainer so it won't
crash when getting a dump when it is not
initialized yet.

Fixes: 210558055
Test: atest com.android.devicehealthchecks.SystemAppCheck
Change-Id: I4badbf38e746d48e76f1b6b1753cb0f7e7973855
parent b787ef7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicReference
 */
class PendingDrawnTasksContainer {

    private lateinit var pendingDrawnTasksCount: AtomicInteger
    private var pendingDrawnTasksCount: AtomicInteger = AtomicInteger(0)
    private var completionCallback: AtomicReference<Runnable> = AtomicReference()

    /**