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

Commit f86c511e authored by Josh Tsuji's avatar Josh Tsuji Committed by Android (Google) Code Review
Browse files

Merge "Catch DeadObjectException." into main

parents 0becc292 bbf4cf0d
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)
            }
        }
    }
}