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

Commit bbf4cf0d authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Catch DeadObjectException.

This seems to exclusively occur on cuttlefishes, but it can't hurt to catch it.

Fixes: 371095060
Flag: EXEMPT bugfix
Test: not necessary
Change-Id: I04916c10bb24ad346492ed9af61e5c455a503635
parent a931c067
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
package com.android.systemui.keyguard.ui.view

import android.graphics.Rect
import android.os.DeadObjectException
import android.util.Log
import android.view.View
import com.android.systemui.dagger.SysUISingleton
@@ -192,7 +193,12 @@ constructor(

        launcherAnimationController?.let {
            manualUnlockAmount = amount

            try {
                it.setUnlockAmount(amount, forceIfAnimating)
            } catch (e: DeadObjectException) {
                Log.e(TAG, "DeadObjectException in setUnlockAmount($amount, $forceIfAnimating)", e)
            }
        }
    }
}