[automerge] Don't re-hide the keyguard if it isn't showing. 2p: c3a2eeaed3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17005881


Change-Id: I598ee031ff7541219abde8ea2f2bd631ce4c5c58
Merged-In: I00655c2e85c46bd0c52b77094757e155b1a6f9c9
This commit is contained in:
Presubmit Automerger Backend
2022-03-02 17:35:28 +00:00

View File

@@ -21,6 +21,7 @@ import android.animation.AnimatorListenerAdapter
import android.animation.ValueAnimator import android.animation.ValueAnimator
import android.content.Context import android.content.Context
import android.graphics.Matrix import android.graphics.Matrix
import android.util.Log
import android.view.RemoteAnimationTarget import android.view.RemoteAnimationTarget
import android.view.SyncRtSurfaceTransactionApplier import android.view.SyncRtSurfaceTransactionApplier
import android.view.View import android.view.View
@@ -38,6 +39,8 @@ import com.android.systemui.statusbar.policy.KeyguardStateController
import dagger.Lazy import dagger.Lazy
import javax.inject.Inject import javax.inject.Inject
const val TAG = "KeyguardUnlock"
/** /**
* Starting scale factor for the app/launcher surface behind the keyguard, when it's animating * Starting scale factor for the app/launcher surface behind the keyguard, when it's animating
* in during keyguard exit. * in during keyguard exit.
@@ -254,7 +257,12 @@ class KeyguardUnlockAnimationController @Inject constructor(
} }
fun hideKeyguardViewAfterRemoteAnimation() { fun hideKeyguardViewAfterRemoteAnimation() {
keyguardViewController.hide(surfaceBehindRemoteAnimationStartTime, 350) if (keyguardViewController.isShowing) {
keyguardViewController.hide(surfaceBehindRemoteAnimationStartTime, 350)
} else {
Log.e(TAG, "#hideKeyguardViewAfterRemoteAnimation called when keyguard view is not " +
"showing. Ignoring...")
}
} }
/** /**